Reverted to appli to branch master-KEYCLOAK-LoginUsername

This commit is contained in:
Gilberto Vieira da Silva committed 2016-09-13 18:52:16 -03:00
1 parent 868f8b166f
commit 55e07bcde2
1 file changed
+1 -1
@@ -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.getLoginUsername(), uriInfo, clientConnection);
if (userSession.isRememberMe()) createRememberMeCookie(realm, userSession.getUser().getUsername(), uriInfo, clientConnection);
// Update userSession note with authTime. But just if flag SSO_AUTH is not set
if (!isSSOAuthentication(clientSession)) {