Skip to content

Commit

Permalink
Merge pull request #1551 from JanssenProject/jans-auth-server-1550
Browse files Browse the repository at this point in the history
feat(jans-auth-server): make check whether user is active case insensitive #1550
  • Loading branch information
yuriyz committed Jun 13, 2022
2 parents b95fa7b + d141837 commit 0bcdbbc
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 0bcdbbc

Please sign in to comment.