diff --git a/forms/common-themes/src/main/resources/theme/base/account/password.ftl b/forms/common-themes/src/main/resources/theme/base/account/password.ftl index c142e79397..053fdbdc83 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/password.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/password.ftl @@ -49,7 +49,6 @@
-
diff --git a/services/src/main/java/org/keycloak/services/resources/AccountService.java b/services/src/main/java/org/keycloak/services/resources/AccountService.java index 06a3723dd5..1394832ae4 100755 --- a/services/src/main/java/org/keycloak/services/resources/AccountService.java +++ b/services/src/main/java/org/keycloak/services/resources/AccountService.java @@ -602,12 +602,6 @@ public class AccountService extends AbstractSecuredLocalService { require(AccountRoles.MANAGE_ACCOUNT); - String action = formData.getFirst("submitAction"); - if (action != null && action.equals("Cancel")) { - setReferrerOnPage(); - return account.createResponse(AccountPages.PASSWORD); - } - csrfCheck(formData); UserModel user = auth.getUser();