diff --git a/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java b/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java index 8463d97b26..24e688d453 100755 --- a/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java +++ b/services/src/main/java/org/keycloak/authentication/authenticators/resetcred/ResetPassword.java @@ -38,7 +38,6 @@ public class ResetPassword extends AbstractSetRequiredActionAuthenticator { (context.getExecution().isConditional() && configuredFor(context))) { context.getAuthenticationSession().addRequiredAction(UserModel.RequiredAction.UPDATE_PASSWORD); - context.getAuthenticationSession().setClientNote(Constants.KC_ACTION_EXECUTING, UserModel.RequiredAction.UPDATE_PASSWORD.name()); } context.success(); } diff --git a/services/src/main/java/org/keycloak/authentication/requiredactions/UpdatePassword.java b/services/src/main/java/org/keycloak/authentication/requiredactions/UpdatePassword.java index 80684f07af..2eb8126512 100755 --- a/services/src/main/java/org/keycloak/authentication/requiredactions/UpdatePassword.java +++ b/services/src/main/java/org/keycloak/authentication/requiredactions/UpdatePassword.java @@ -125,8 +125,7 @@ public class UpdatePassword implements RequiredActionProvider, RequiredActionFac return; } - if (getId().equals(authSession.getClientNote(Constants.KC_ACTION_EXECUTING)) - && "on".equals(formData.getFirst("logout-sessions"))) + if ("on".equals(formData.getFirst("logout-sessions"))) { session.sessions().getUserSessionsStream(realm, user) .filter(s -> !Objects.equals(s.getId(), authSession.getParentSession().getId())) diff --git a/themes/src/main/resources/theme/base/login/login-update-password.ftl b/themes/src/main/resources/theme/base/login/login-update-password.ftl index b884d75271..2cac0f9798 100755 --- a/themes/src/main/resources/theme/base/login/login-update-password.ftl +++ b/themes/src/main/resources/theme/base/login/login-update-password.ftl @@ -49,11 +49,9 @@