Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Facchetti committed Jul 4, 2023
1 parent 30aa94e commit c9f7490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/portal/middleware/intAAD.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ func (a IntAAD) AAD(h http.Handler) http.Handler {
case IntUsernameKey:
userInfo := userinfo{}
json.Unmarshal([]byte(v.Value), &userInfo)
if string(userInfo.password) != string(a.sessionKey) {
if string(userInfo.Password) != string(a.sessionKey) {
a.log.Debug("password did not match")
h.ServeHTTP(w, r)
return
}
username = userInfo.username
groups = userInfo.groups
username = userInfo.Username
groups = userInfo.Groups

case IntPasswordKey:
if v.Value != string(a.sessionKey) {
Expand Down

0 comments on commit c9f7490

Please sign in to comment.