Merge pull request #698 from mposolda/master
Prefill login form just if rememberMe enabled for the realm
This commit is contained in:
commit
16ea18370d
1 changed files with 5 additions and 3 deletions
|
@ -964,9 +964,11 @@ public class TokenService {
|
|||
LoginFormsProvider forms = Flows.forms(session, realm, client, uriInfo);
|
||||
|
||||
String rememberMeUsername = null;
|
||||
Cookie rememberMeCookie = headers.getCookies().get(AuthenticationManager.KEYCLOAK_REMEMBER_ME);
|
||||
if (rememberMeCookie != null && !"".equals(rememberMeCookie.getValue())) {
|
||||
rememberMeUsername = rememberMeCookie.getValue();
|
||||
if (realm.isRememberMe()) {
|
||||
Cookie rememberMeCookie = headers.getCookies().get(AuthenticationManager.KEYCLOAK_REMEMBER_ME);
|
||||
if (rememberMeCookie != null && !"".equals(rememberMeCookie.getValue())) {
|
||||
rememberMeUsername = rememberMeCookie.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
if (loginHint != null || rememberMeUsername != null) {
|
||||
|
|
Loading…
Reference in a new issue