Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Sep 19, 2024
1 parent d9c23f3 commit d0c249e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public Authentication authenticate(Authentication authentication) throws Authent
return userAccountRepository
.findByLdapId(ldapUserId) // find an existing user
.orElseGet(() -> {
// or create a new user

// or try to create a new user
String email = null;
if (StringUtils.hasLength(aaaProperties.ldap().attributeNames().email())) {
email = ldapEntry.email();
Expand Down

0 comments on commit d0c249e

Please sign in to comment.