2020-07-28 05:37:09 -04:00
|
|
|
extends ../../../../../app/views/layout
|
2015-12-11 06:30:06 -05:00
|
|
|
|
2021-03-29 05:21:31 -04:00
|
|
|
block append meta
|
|
|
|
meta(name="ol-passwordStrengthOptions" data-type="json" content=settings.passwordStrengthOptions)
|
|
|
|
|
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(
|
|
|
|
async-form="activate",
|
|
|
|
name="activationForm",
|
|
|
|
action="/user/password/set",
|
|
|
|
method="POST",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
input(name='_csrf', type='hidden', value=csrfToken)
|
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=token
|
2021-03-22 05:53:56 -04:00
|
|
|
ng-non-bindable
|
2015-12-11 06:30:06 -05:00
|
|
|
)
|
|
|
|
.alert.alert-danger(ng-show="activationForm.response.error")
|
|
|
|
| #{translate("activation_token_expired")}
|
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(
|
|
|
|
type='email',
|
|
|
|
name='email',
|
|
|
|
placeholder="email@example.com"
|
|
|
|
required,
|
|
|
|
ng-model="email",
|
|
|
|
ng-model-options="{ updateOn: 'blur' }",
|
|
|
|
disabled
|
|
|
|
)
|
|
|
|
.form-group
|
|
|
|
label(for='password') #{translate("password")}
|
|
|
|
input.form-control#passwordField(
|
|
|
|
type='password',
|
|
|
|
name='password',
|
|
|
|
placeholder="********",
|
|
|
|
required,
|
|
|
|
ng-model="password",
|
|
|
|
complex-password,
|
|
|
|
focus="true"
|
|
|
|
)
|
|
|
|
span.small.text-primary(ng-show="activationForm.password.$error.complexPassword", ng-bind-html="complexPasswordErrorMessage")
|
|
|
|
.actions
|
|
|
|
button.btn-primary.btn(
|
|
|
|
type='submit'
|
|
|
|
ng-disabled="activationForm.inflight || activationForm.password.$error.required|| activationForm.password.$error.complexPassword"
|
|
|
|
)
|
|
|
|
span(ng-show="!activationForm.inflight") #{translate("activate")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="activationForm.inflight") #{translate("activating")}…
|