Merge pull request #1898 from velias/KEYCLOAK-2164

KEYCLOAK-2164 - removed Cancel button from 'Change password' screen in Account app
This commit is contained in:
Stian Thorgersen 2015-11-30 12:45:39 +01:00
commit 61c2ec04a4
2 changed files with 0 additions and 7 deletions

View file

@ -49,7 +49,6 @@
<div id="kc-form-buttons" class="col-md-offset-2 col-md-10 submit">
<div class="">
<button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonLargeClass!}" name="submitAction" value="Save">${msg("doSave")}</button>
<button type="submit" class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonLargeClass!}" name="submitAction" value="Cancel">${msg("doCancel")}</button>
</div>
</div>
</div>

View file

@ -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();