{{#if successMessage}}

{{successMessage}}

{{#if requiresApproval}}

{{i18n 'login.not_approved'}}

{{else}} {{#unless redirected}} {{continueButtonText}} {{/unless}} {{/if}} {{else}}
{{#if securityKeyOrSecondFactorRequired }} {{#if errorMessage}}
{{errorMessage}}

{{/if}} {{#if securityKeyRequired }} {{#security-key-form allowedCredentialIds=model.allowed_credential_ids challenge=model.security_key_challenge showSecurityKey=model.security_key_required showSecondFactor=false secondFactorMethod=secondFactorMethod otherMethodAllowed=otherMethodAllowed action=(action "authenticateSecurityKey")}} {{/security-key-form}} {{else}} {{#second-factor-form secondFactorMethod=secondFactorMethod secondFactorToken=secondFactorToken backupEnabled=backupEnabled isLogin=false}} {{second-factor-input value=secondFactorToken inputId='second-factor' secondFactorMethod=secondFactorMethod backupEnabled=backupEnabled}} {{/second-factor-form}} {{/if}} {{#unless securityKeyRequired }} {{d-button action=(action "submit") class='btn-primary' label='submit' type='submit'}} {{/unless}} {{else}}

{{i18n 'user.change_password.choose'}}

{{password-field value=accountPassword type="password" id="new-account-password" capsLockOn=capsLockOn autofocus="autofocus"}}  {{input-tip validation=passwordValidation}}
{{d-icon "exclamation-triangle"}} {{i18n 'login.caps_lock_warning'}}
{{d-button action=(action "submit") class='btn-primary' label='user.change_password.set_password' type='submit'}} {{/if}}
{{/if}}