overleaf/services/web/app/views/user/setPassword.jade

43 lines
1.2 KiB
Text
Raw Normal View History

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
h1 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",
action="/user/password/set",
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)
2014-06-20 10:15:25 +00:00
form-messages(for="passwordResetForm")
.alert.alert-success(ng-show="passwordResetForm.response.success")
2014-06-17 15:19:40 +00:00
| Your password has been reset.
a(href='/login') Login here
2014-06-09 09:25:38 +00:00
.form-group
2014-06-17 15:19:40 +00:00
input.form-control(
type='password',
name='password',
2014-06-18 14:23:00 +00:00
placeholder='new password',
required,
ng-model="password"
2014-06-17 15:19:40 +00:00
)
2014-06-18 14:23:00 +00:00
span.small.text-primary(
ng-show="passwordResetForm.password.$invalid && passwordResetForm.password.$dirty"
) Required
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"
) Set new password