Skip to content

Commit

Permalink
LDAP: Prevent error when mergeing into existing user
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Jul 7, 2017
1 parent 4771561 commit d484f59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/UserApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,7 @@ public static User authenticateWithLdap(String loginIdOrEmail, String password)
User.resetPassword(localUserFoundByLdapLogin.loginId, password);
}

localUserFoundByLdapLogin.refresh();
localUserFoundByLdapLogin.name = ldapUser.getDisplayName();
localUserFoundByLdapLogin.update();
return localUserFoundByLdapLogin;
Expand Down

0 comments on commit d484f59

Please sign in to comment.