2014-05-15 16:16:20 +00:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-06-09 09:25:38 +00:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
|
|
.card
|
|
|
|
.page-header
|
2014-07-31 13:01:37 +00:00
|
|
|
h1 #{translate("reset_your_password")}
|
2014-06-17 15:19:40 +00:00
|
|
|
form(
|
|
|
|
async-form="password-reset",
|
2014-06-18 14:23:00 +00:00
|
|
|
name="passwordResetForm",
|
2014-06-17 15:43:33 +00:00
|
|
|
action="/user/password/set",
|
2014-11-17 15:19:11 +00:00
|
|
|
method="POST",
|
2014-06-17 15:43:33 +00:00
|
|
|
ng-cloak
|
2014-06-17 15:19:40 +00:00
|
|
|
)
|
2014-06-09 09:25:38 +00:00
|
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
2015-12-11 11:30:06 +00:00
|
|
|
.alert.alert-success(ng-show="passwordResetForm.response.success")
|
|
|
|
| #{translate("password_has_been_reset")}.
|
|
|
|
a(href='/login') #{translate("login_here")}
|
|
|
|
.alert.alert-danger(ng-show="passwordResetForm.response.error")
|
|
|
|
| #{translate("password_reset_token_expired")}
|
2014-06-17 15:19:40 +00:00
|
|
|
|
2014-06-09 09:25:38 +00:00
|
|
|
.form-group
|
2015-04-30 10:59:44 +00:00
|
|
|
input.form-control#passwordField(
|
2014-06-17 15:19:40 +00:00
|
|
|
type='password',
|
|
|
|
name='password',
|
2014-06-18 14:23:00 +00:00
|
|
|
placeholder='new password',
|
|
|
|
required,
|
2014-07-23 10:18:42 +00:00
|
|
|
ng-model="password",
|
2015-04-30 10:59:44 +00:00
|
|
|
autofocus,
|
|
|
|
complex-password
|
2014-06-17 15:19:40 +00:00
|
|
|
)
|
2015-04-30 10:59:44 +00:00
|
|
|
span.small.text-primary(ng-show="passwordResetForm.password.$error.complexPassword", ng-bind-html="complexPasswordErrorMessage")
|
2014-06-17 15:19:40 +00:00
|
|
|
input(
|
|
|
|
type="hidden",
|
|
|
|
name="passwordResetToken",
|
|
|
|
value=passwordResetToken
|
|
|
|
)
|
2014-06-09 09:25:38 +00:00
|
|
|
.actions
|
2014-06-18 14:23:00 +00:00
|
|
|
button.btn.btn-primary(
|
|
|
|
type='submit',
|
|
|
|
ng-disabled="passwordResetForm.$invalid"
|
2014-11-17 15:19:11 +00:00
|
|
|
) #{translate("set_new_password")}
|
2015-04-30 10:59:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
script(type='text/javascript').
|
|
|
|
window.usersEmail = "#{getReqQueryParam('email')}"
|
|
|
|
window.passwordStrengthOptions = !{JSON.stringify(settings.passwordStrengthOptions || {})}
|