Skip to content

Commit

Permalink
Revert "Adding even more debug info for user existence check"
Browse files Browse the repository at this point in the history
This reverts commit 93c383b.
  • Loading branch information
nielsdt-rabobank committed Jan 25, 2024
1 parent 93c383b commit d7e050e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions uaa/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,11 @@ 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 d7e050e

Please sign in to comment.