2021-09-23 05:47:55 -04:00
|
|
|
extends ../../../../../app/views/layout-marketing
|
2021-03-29 05:21:31 -04:00
|
|
|
|
2015-12-11 06:30:06 -05:00
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt#main-content
|
2015-12-11 06:30:06 -05:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
2015-12-11 09:25:17 -05:00
|
|
|
.alert.alert-success #{translate("nearly_activated")}
|
2015-12-11 06:30:06 -05:00
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
|
|
.card
|
|
|
|
.page-header
|
2015-12-11 09:25:17 -05:00
|
|
|
h1 #{translate("please_set_a_password")}
|
2015-12-11 06:30:06 -05:00
|
|
|
form(
|
2021-09-23 05:47:55 -04:00
|
|
|
data-ol-async-form
|
2015-12-11 06:30:06 -05:00
|
|
|
name="activationForm",
|
|
|
|
action="/user/password/set",
|
|
|
|
method="POST",
|
|
|
|
)
|
2021-09-24 05:22:37 -04:00
|
|
|
+formMessages()
|
2021-09-23 05:47:55 -04:00
|
|
|
|
2021-09-24 05:22:37 -04:00
|
|
|
+customFormMessage('token-expired', 'danger')
|
2021-09-23 05:47:55 -04:00
|
|
|
| #{translate("activation_token_expired")}
|
|
|
|
|
2021-09-24 05:22:37 -04:00
|
|
|
+customFormMessage('invalid-password', 'danger')
|
2021-09-23 05:47:55 -04:00
|
|
|
| #{translate('invalid_password')}
|
|
|
|
|
2015-12-11 06:30:06 -05:00
|
|
|
input(name='_csrf', type='hidden', value=csrfToken)
|
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=token
|
|
|
|
)
|
2021-03-17 09:29:43 -04:00
|
|
|
|
2015-12-11 06:30:06 -05:00
|
|
|
.form-group
|
|
|
|
label(for='email') #{translate("email")}
|
|
|
|
input.form-control(
|
2021-09-23 05:47:55 -04:00
|
|
|
aria-label="email",
|
2015-12-11 06:30:06 -05:00
|
|
|
type='email',
|
|
|
|
name='email',
|
2021-09-23 05:47:55 -04:00
|
|
|
placeholder="email@example.com",
|
|
|
|
value=email
|
2015-12-11 06:30:06 -05:00
|
|
|
required,
|
|
|
|
disabled
|
|
|
|
)
|
|
|
|
.form-group
|
|
|
|
label(for='password') #{translate("password")}
|
|
|
|
input.form-control#passwordField(
|
|
|
|
type='password',
|
|
|
|
name='password',
|
|
|
|
placeholder="********",
|
2021-09-23 05:47:55 -04:00
|
|
|
autocomplete="new-password",
|
|
|
|
autofocus,
|
2015-12-11 06:30:06 -05:00
|
|
|
required,
|
2022-01-12 04:53:08 -05:00
|
|
|
minlength=settings.passwordStrengthOptions.length.min
|
2015-12-11 06:30:06 -05:00
|
|
|
)
|
|
|
|
.actions
|
2021-09-23 05:47:55 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
|
|
|
data-ol-disabled-inflight
|
|
|
|
aria-label=translate('activate')
|
2015-12-11 06:30:06 -05:00
|
|
|
)
|
2021-09-23 05:47:55 -04:00
|
|
|
span(data-ol-inflight="idle")
|
|
|
|
| #{translate('activate')}
|
|
|
|
span(hidden data-ol-inflight="pending")
|
|
|
|
| #{translate('activating')}…
|