{{ 'RESET_PASSWORD_PAGE.TITLE' | translate }}

{{ 'RESET_PASSWORD_PAGE.SUB_TITLE' | translate }}

@if (showMessages.error && errors?.length && !submitted) {

Oh snap!

    @for (error of errors; track $index) {
  • {{ error }}
  • }
} @if (showMessages.success && messages?.length && !submitted) {

Hooray!

    @for (message of messages; track $index) {
  • {{ message }}
  • }
}
@if (password.invalid && password.touched) { @if (password.errors?.required) {

{{ 'RESET_PASSWORD_PAGE.VALIDATION.NEW_PASSWORD_REQUIRED' | translate }}

} @if (password.errors?.minlength || password.errors?.maxlength) {

{{ 'RESET_PASSWORD_PAGE.VALIDATION.PASSWORD_SHOULD_CONTAIN' | translate : { minLength: getConfigValue('forms.validation.password.minLength'), maxLength: getConfigValue('forms.validation.password.maxLength') } }}

} @if (password.errors?.pattern && !password.errors?.minlength) {

{{ 'RESET_PASSWORD_PAGE.VALIDATION.PASSWORD_STRENGTH' | translate }}

}
}
@if (rePass.touched) { @if (rePass.invalid && rePass.errors?.required) {

{{ 'RESET_PASSWORD_PAGE.VALIDATION.CONFIRM_PASSWORD_REQUIRED' | translate }}

} @if (password.value != rePass.value && !rePass.errors?.required) {

{{ 'RESET_PASSWORD_PAGE.VALIDATION.PASSWORDS_NOT_MATCH' | translate }}

}
}