|
|
@@ -27,17 +27,17 @@ block content
|
|
|
div(data-ol-not-sent)
|
|
|
h1.h3.mb-3.mt-0 #{translate("reset_your_password")}
|
|
|
p(data-ol-hide-on-error-message="token-expired") #{translate("create_a_new_password_for_your_account")}.
|
|
|
- +formMessages()
|
|
|
+ +formMessagesNewStyle()
|
|
|
|
|
|
- +customFormMessage('password-contains-email', 'danger')
|
|
|
+ +customFormMessageNewStyle('password-contains-email', 'danger')
|
|
|
| #{translate('invalid_password_contains_email')}.
|
|
|
| #{translate('use_a_different_password')}.
|
|
|
|
|
|
- +customFormMessage('password-too-similar', 'danger')
|
|
|
+ +customFormMessageNewStyle('password-too-similar', 'danger')
|
|
|
| #{translate('invalid_password_too_similar')}.
|
|
|
| #{translate('use_a_different_password')}.
|
|
|
|
|
|
- +customFormMessage('token-expired', 'danger')
|
|
|
+ +customFormMessageNewStyle('token-expired', 'danger')
|
|
|
| #{translate('password_reset_token_expired')}
|
|
|
br
|
|
|
a(href="/user/password/reset")
|
|
|
@@ -48,7 +48,7 @@ block content
|
|
|
|
|
|
.form-group.mb-3
|
|
|
label.form-label(for='passwordField', data-ol-hide-on-error-message="token-expired") #{translate("new_password")}
|
|
|
- input.form-control#passwordField(
|
|
|
+ input.form-control.auth-aux-new-password#passwordField(
|
|
|
type='password'
|
|
|
name='password'
|
|
|
autocomplete="new-password"
|
|
|
@@ -57,13 +57,13 @@ block content
|
|
|
minlength=settings.passwordStrengthOptions.length.min
|
|
|
)
|
|
|
|
|
|
- +customValidationMessage('invalid-password')
|
|
|
+ +customValidationMessageNewStyle('invalid-password')
|
|
|
| #{translate('invalid_password')}.
|
|
|
|
|
|
- +customValidationMessage('password-must-be-different')
|
|
|
+ +customValidationMessageNewStyle('password-must-be-different')
|
|
|
| #{translate('password_cant_be_the_same_as_current_one')}.
|
|
|
|
|
|
- +customValidationMessage('password-must-be-strong')
|
|
|
+ +customValidationMessageNewStyle('password-must-be-strong')
|
|
|
| !{translate('password_was_detected_on_a_public_list_of_known_compromised_passwords', {}, [{name: 'a', attrs: {href: 'https://haveibeenpwned.com/passwords', rel: 'noopener noreferrer', target: '_blank'}}])}.
|
|
|
| #{translate('use_a_different_password')}.
|
|
|
|