Skip to content

Commit

Permalink
feat(jans-auth-server): make check whether user is active case insens…
Browse files Browse the repository at this point in the history
…itive #1550

#1550
  • Loading branch information
yuriyz committed Jun 13, 2022
1 parent 5f2be26 commit d141837
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@ private User getUserByAttribute(PersistenceEntryManager ldapAuthEntryManager, St
private boolean checkUserStatus(User user) {
CustomObjectAttribute userStatus = userService.getCustomAttribute(user, "jansStatus");

if ((userStatus != null) && GluuStatus.ACTIVE.equals(GluuStatus.getByValue(StringHelper.toString(userStatus.getValue())))) {
if ((userStatus != null) && GluuStatus.ACTIVE.getValue().equalsIgnoreCase(StringHelper.toString(userStatus.getValue()))) {
return true;
}

log.warn("User '{}' was disabled", user.getUserId());
log.warn("User '{}' is disabled", user.getUserId());
return false;
}

Expand Down

0 comments on commit d141837

Please sign in to comment.