<#import "template.ftl" as layout> <#import "components/atoms/button.ftl" as button> <#import "components/atoms/button-group.ftl" as buttonGroup> <#import "components/atoms/checkbox.ftl" as checkbox> <#import "components/atoms/form.ftl" as form> <#import "components/atoms/input.ftl" as input> <@layout.registrationLayout displayMessage=!messagesPerField.existsError("password", "password-confirm") ; section > <#if section="header"> ${msg("updatePasswordTitle")} <#elseif section="form"> <@form.kw action=url.loginAction method="post"> <@input.kw autocomplete="new-password" autofocus=true invalid=messagesPerField.existsError("password", "password-confirm") label=msg("passwordNew") name="password-new" type="password" /> <@input.kw autocomplete="new-password" invalid=messagesPerField.existsError("password-confirm") label=msg("passwordConfirm") message=kcSanitize(messagesPerField.get("password-confirm")) name="password-confirm" type="password" /> <#if isAppInitiatedAction??> <@checkbox.kw checked=true label=msg("logoutOtherSessions") name="logout-sessions" value="on" /> <@buttonGroup.kw> <#if isAppInitiatedAction??> <@button.kw color="primary" type="submit"> ${msg("doSubmit")} <@button.kw color="secondary" name="cancel-aia" type="submit" value="true"> ${msg("doCancel")} <#else> <@button.kw color="primary" type="submit"> ${msg("doSubmit")}