Merge pull request #3233 from betovieirasilva/master-KEYCLOAK-LoginUsername

[PULL-REQUEST-3181 & PULL-REQUEST-3233] Username is not displayed on the login screen with that email
This commit is contained in:
Stian Thorgersen authored and GitHub committed 2016-09-16 09:23:26 +02:00
commit 44c47431a1
2 files changed
+35 -1

No files matched your search

@@ -408,7 +408,7 @@ public class AuthenticationManager {
// refresh the cookies!
createLoginCookie(session, realm, userSession.getUser(), userSession, uriInfo, clientConnection);
if (userSession.getState() != UserSessionModel.State.LOGGED_IN) userSession.setState(UserSessionModel.State.LOGGED_IN);
if (userSession.isRememberMe()) createRememberMeCookie(realm, userSession.getUser().getUsername(), uriInfo, clientConnection);
if (userSession.isRememberMe()) createRememberMeCookie(realm, userSession.getLoginUsername(), uriInfo, clientConnection);
// Update userSession note with authTime. But just if flag SSO_AUTH is not set
if (!isSSOAuthentication(clientSession)) {