Skip to content

Commit

Permalink
Adding even more debug info for user existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdt-rabobank committed Jan 25, 2024
1 parent 464e6bd commit 93c383b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uaa/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ func (u *Users) GetByNameAndOrigin(userName, origin string) *User {
}

func (u *Users) GetByID(ID string) *User {
lo.G.Debugf("GetByID: BEGIN: Looking for user with GUID [%s]", ID)
for _, user := range u.List() {
lo.G.Debugf("GetByID: Checking user's GUID [%s] for user [%s] against GUID [%s]", user.GUID, user.Username, ID)
if strings.EqualFold(user.GUID, ID) {
return &user
}
}
lo.G.Debug("GetByID: END: Returning NIL")
return nil
}

Expand Down

0 comments on commit 93c383b

Please sign in to comment.