mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
82672269c4
Globally apply StringHelper.stringifyJsonForScript() GitOrigin-RevId: 82dc812a43a1e6f389471380a6a430c0a18dcec2
63 lines
2.4 KiB
Text
63 lines
2.4 KiB
Text
extends ../layout
|
|
|
|
block content
|
|
.content.content-alt
|
|
.container
|
|
.row
|
|
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
|
.card
|
|
.page-header
|
|
h1 #{translate("reset_your_password")}
|
|
form(
|
|
async-form="password-reset",
|
|
name="passwordResetForm",
|
|
action="/user/password/set",
|
|
method="POST",
|
|
ng-cloak
|
|
)
|
|
input(type="hidden", name="_csrf", value=csrfToken)
|
|
.alert.alert-success(ng-show="passwordResetForm.response.success")
|
|
| #{translate("password_has_been_reset")}.
|
|
a(href='/login') #{translate("login_here")}
|
|
div(ng-show="passwordResetForm.response.error == true")
|
|
.alert.alert-danger(ng-show="passwordResetForm.response.data == 'NotFoundError'")
|
|
| #{translate('password_reset_token_expired')}
|
|
br
|
|
a(href="/user/password/reset" style="text-decoration: underline;")
|
|
| Request a new password reset email
|
|
.alert.alert-danger(ng-show="passwordResetForm.response.data == 'SLInV2Error'")
|
|
a(href=settings.accountMerge.sharelatexHost + "/user/password/reset")
|
|
| Please go to ShareLaTeX to reset your password
|
|
.alert.alert-danger(ng-show="passwordResetForm.response.data == 'NotInV2Error'")
|
|
a(href=settings.accountMerge.betaHost + "/user/password/reset" style="text-decoration: underline;")
|
|
| Please go to Overleaf to reset your password
|
|
.alert.alert-danger(ng-show="passwordResetForm.response.status == 500")
|
|
| #{translate('error_performing_request')}
|
|
|
|
|
|
.form-group
|
|
input.form-control#passwordField(
|
|
type='password',
|
|
name='password',
|
|
placeholder='new password',
|
|
required,
|
|
ng-model="password",
|
|
autofocus,
|
|
complex-password
|
|
)
|
|
span.small.text-primary(ng-show="passwordResetForm.password.$error.complexPassword", ng-bind-html="complexPasswordErrorMessage")
|
|
input(
|
|
type="hidden",
|
|
name="passwordResetToken",
|
|
value=passwordResetToken
|
|
)
|
|
.actions
|
|
button.btn.btn-primary(
|
|
type='submit',
|
|
ng-disabled="passwordResetForm.$invalid"
|
|
) #{translate("set_new_password")}
|
|
|
|
|
|
script(type='text/javascript').
|
|
window.usersEmail = "#{getReqQueryParam('email')}"
|
|
window.passwordStrengthOptions = !{StringHelper.stringifyJsonForScript(settings.passwordStrengthOptions || {})}
|