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
|
2014-06-09 05:25:38 -04:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
|
|
.card
|
|
|
|
.page-header
|
2014-07-31 09:01:37 -04:00
|
|
|
h1 #{translate("reset_your_password")}
|
2014-06-17 11:19:40 -04:00
|
|
|
form(
|
2021-09-23 05:47:36 -04:00
|
|
|
data-ol-async-form,
|
2014-06-18 10:23:00 -04:00
|
|
|
name="passwordResetForm",
|
2014-06-17 11:43:33 -04:00
|
|
|
action="/user/password/set",
|
2014-11-17 10:19:11 -05:00
|
|
|
method="POST",
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
2021-09-23 05:47:36 -04:00
|
|
|
div(data-ol-not-sent)
|
2021-09-24 05:22:37 -04:00
|
|
|
+formMessages()
|
2021-09-23 05:47:36 -04:00
|
|
|
|
2021-09-24 05:22:37 -04:00
|
|
|
+customFormMessage('token-expired', 'danger')
|
2021-09-23 05:47:36 -04:00
|
|
|
| #{translate('password_reset_token_expired')}
|
|
|
|
br
|
|
|
|
a(href="/user/password/reset")
|
|
|
|
| #{translate('request_new_password_reset_email')}
|
|
|
|
|
2021-09-24 05:22:37 -04:00
|
|
|
+customFormMessage('invalid-password', 'danger')
|
2021-09-23 05:47:36 -04:00
|
|
|
| #{translate('invalid_password')}
|
|
|
|
|
|
|
|
div.alert.alert-success(
|
|
|
|
hidden
|
|
|
|
role="alert"
|
|
|
|
aria-live="assertive"
|
|
|
|
data-ol-sent
|
|
|
|
)
|
2021-03-17 07:46:49 -04:00
|
|
|
| #{translate("password_has_been_reset")}.
|
2021-03-31 05:35:29 -04:00
|
|
|
br
|
2015-12-11 06:30:06 -05:00
|
|
|
a(href='/login') #{translate("login_here")}
|
2018-12-14 10:45:18 -05:00
|
|
|
|
2021-09-23 05:47:36 -04:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2021-11-09 06:01:27 -05:00
|
|
|
input(type="hidden", name="email", value=email)
|
2014-06-17 11:19:40 -04:00
|
|
|
|
2014-06-09 05:25:38 -04:00
|
|
|
.form-group
|
2015-04-30 06:59:44 -04:00
|
|
|
input.form-control#passwordField(
|
2014-06-17 11:19:40 -04:00
|
|
|
type='password',
|
|
|
|
name='password',
|
2014-06-18 10:23:00 -04:00
|
|
|
placeholder='new password',
|
2021-03-31 06:44:48 -04:00
|
|
|
autocomplete="new-password",
|
2015-04-30 06:59:44 -04:00
|
|
|
autofocus,
|
2021-09-23 05:47:36 -04:00
|
|
|
required,
|
|
|
|
minlength=settings.passwordStrengthOptions.length.min,
|
|
|
|
maxlength=settings.passwordStrengthOptions.length.max
|
2014-06-17 11:19:40 -04:00
|
|
|
)
|
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=passwordResetToken
|
|
|
|
)
|
2014-06-09 05:25:38 -04:00
|
|
|
.actions
|
2014-06-18 10:23:00 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
2021-09-23 05:47:36 -04:00
|
|
|
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')}…
|