KEYCLOAK-1576
This commit is contained in:
parent
f2dee1a470
commit
f884aed25e
1 changed files with 2 additions and 0 deletions
|
@ -623,6 +623,7 @@ public class LoginActionsService {
|
||||||
if (clientSession.getAction().equals(ClientSessionModel.Action.RECOVER_PASSWORD.name())) {
|
if (clientSession.getAction().equals(ClientSessionModel.Action.RECOVER_PASSWORD.name())) {
|
||||||
String actionCookieValue = getActionCookie();
|
String actionCookieValue = getActionCookie();
|
||||||
if (actionCookieValue == null || !actionCookieValue.equals(userSession.getId())) {
|
if (actionCookieValue == null || !actionCookieValue.equals(userSession.getId())) {
|
||||||
|
session.sessions().removeClientSession(realm, clientSession);
|
||||||
return session.getProvider(LoginFormsProvider.class)
|
return session.getProvider(LoginFormsProvider.class)
|
||||||
.setSuccess(Messages.ACCOUNT_PASSWORD_UPDATED)
|
.setSuccess(Messages.ACCOUNT_PASSWORD_UPDATED)
|
||||||
.createInfoPage();
|
.createInfoPage();
|
||||||
|
@ -657,6 +658,7 @@ public class LoginActionsService {
|
||||||
|
|
||||||
String actionCookieValue = getActionCookie();
|
String actionCookieValue = getActionCookie();
|
||||||
if (actionCookieValue == null || !actionCookieValue.equals(userSession.getId())) {
|
if (actionCookieValue == null || !actionCookieValue.equals(userSession.getId())) {
|
||||||
|
session.sessions().removeClientSession(realm, clientSession);
|
||||||
return session.getProvider(LoginFormsProvider.class)
|
return session.getProvider(LoginFormsProvider.class)
|
||||||
.setSuccess(Messages.EMAIL_VERIFIED)
|
.setSuccess(Messages.EMAIL_VERIFIED)
|
||||||
.createInfoPage();
|
.createInfoPage();
|
||||||
|
|
Loading…
Reference in a new issue