2021-09-23 05:47:36 -04:00
|
|
|
extends ../layout-marketing
|
2021-03-31 05:35:29 -04:00
|
|
|
|
2014-05-15 12:16:20 -04:00
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt#main-content
|
2022-12-06 05:22:20 -05:00
|
|
|
.container-custom-sm.mx-auto
|
|
|
|
.card
|
|
|
|
form(
|
|
|
|
data-ol-async-form,
|
|
|
|
name="passwordResetForm",
|
|
|
|
action="/user/password/set",
|
|
|
|
method="POST",
|
|
|
|
data-ol-hide-on-error="token-expired"
|
|
|
|
)
|
|
|
|
div(
|
|
|
|
hidden
|
|
|
|
data-ol-sent
|
|
|
|
)
|
|
|
|
h3.mt-0.mb-2 #{translate("password_updated")}
|
|
|
|
p.mb-4 #{translate("your_password_has_been_successfully_changed")}.
|
|
|
|
a(href='/login') #{translate("log_in_now")}
|
|
|
|
|
|
|
|
div(data-ol-not-sent)
|
|
|
|
h3.mt-0.mb-2 #{translate("reset_your_password")}
|
|
|
|
p(data-ol-hide-on-error-message="token-expired") #{translate("create_a_new_password_for_your_account")}.
|
|
|
|
+formMessages()
|
2022-09-27 07:24:17 -04:00
|
|
|
|
2023-04-11 09:16:51 -04:00
|
|
|
+customFormMessage('password-contains-email', 'danger')
|
|
|
|
| #{translate('invalid_password_contains_email')}.
|
|
|
|
| #{translate('use_a_different_password')}
|
|
|
|
|
|
|
|
+customFormMessage('password-too-similar', 'danger')
|
|
|
|
| #{translate('invalid_password_too_similar')}.
|
|
|
|
| #{translate('use_a_different_password')}
|
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
+customFormMessage('token-expired', 'danger')
|
|
|
|
| #{translate('password_reset_token_expired')}
|
|
|
|
br
|
|
|
|
a(href="/user/password/reset")
|
|
|
|
| #{translate('request_new_password_reset_email')}
|
2021-09-23 05:47:36 -04:00
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
|
|
|
input(type="hidden", name="email", value=email)
|
2021-09-23 05:47:36 -04:00
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
.form-group
|
|
|
|
label(for='passwordField', data-ol-hide-on-error-message="token-expired") #{translate("new_password")}
|
|
|
|
input.form-control#passwordField(
|
|
|
|
type='password',
|
|
|
|
name='password',
|
|
|
|
placeholder=translate("enter_your_new_password"),
|
|
|
|
autocomplete="new-password",
|
|
|
|
autofocus,
|
|
|
|
required,
|
|
|
|
minlength=settings.passwordStrengthOptions.length.min
|
|
|
|
)
|
2021-09-23 05:47:36 -04:00
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
+customValidationMessage('invalid-password')
|
|
|
|
| #{translate('invalid_password')}
|
2018-12-14 10:45:18 -05:00
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
+customValidationMessage('password-must-be-different')
|
|
|
|
| #{translate('password_cant_be_the_same_as_current_one')}.
|
2014-06-17 11:19:40 -04:00
|
|
|
|
2022-12-06 05:22:20 -05:00
|
|
|
+customValidationMessage('password-must-be-strong')
|
|
|
|
| !{translate('password_was_detected_on_a_public_list_of_known_compromised_passwords', {}, [{name: 'a', attrs: {href: 'https://haveibeenpwned.com', rel: 'noopener noreferrer', target: '_blank'}}])}.
|
|
|
|
| #{translate('use_a_different_password')}.
|
|
|
|
|
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=passwordResetToken
|
|
|
|
)
|
|
|
|
div(data-ol-hide-on-error-message="token-expired")
|
|
|
|
div #{translate('in_order_to_have_a_secure_account_make_sure_your_password')}
|
|
|
|
ul.mb-4.ps-4
|
2023-02-01 04:34:59 -05:00
|
|
|
li #{translate('is_longer_than_n_characters', {n: settings.passwordStrengthOptions.length.min})}
|
2022-12-06 05:22:20 -05:00
|
|
|
li #{translate('does_not_contain_or_significantly_match_your_email')}
|
2023-02-10 05:19:58 -05:00
|
|
|
li #{translate('is_not_used_on_any_other_website')}
|
2022-12-06 05:22:20 -05:00
|
|
|
.actions
|
|
|
|
button.btn.btn-primary.w-100(
|
|
|
|
type='submit',
|
|
|
|
data-ol-disabled-inflight
|
|
|
|
aria-label=translate('set_new_password')
|
|
|
|
)
|
|
|
|
span(data-ol-inflight="idle")
|
|
|
|
| #{translate('set_new_password')}
|
|
|
|
span(hidden data-ol-inflight="pending")
|
|
|
|
| #{translate('set_new_password')}…
|