Merge pull request #879 from sharelatex/sk-handle-user-account-delete

Sk handle user account delete
This commit is contained in:
Shane Kilkelly 2018-09-03 10:41:49 +01:00 committed by GitHub
commit 7be716e889

View file

@ -73,6 +73,7 @@ block content
label.control-label #{translate("last_name")}
div.form-control(readonly="true") #{user.last_name}
if !externalAuthenticationSystemUsed()
.col-md-5.col-md-offset-1
h3 #{translate("change_password")}
@ -120,7 +121,14 @@ block content
ng-disabled="changePasswordForm.$invalid"
) #{translate("change")}
else
if settings.overleaf && settings.createV1AccountOnLogin
.col-md-5.col-md-offset-1
h3 #{translate("change_password")}
p
| To change your password,
| please go to #[a(href=settings.overleaf.host+'/users/edit') Overleaf v1 settings]
| !{moduleIncludes("userSettings", locals)}
@ -148,7 +156,7 @@ block content
hr
if !externalAuthenticationSystemUsed()
if !externalAuthenticationSystemUsed() || (settings.createV1AccountOnLogin && settings.overleaf)
p.small
| #{translate("newsletter_info_and_unsubscribe")}
@ -182,6 +190,8 @@ block content
h3 #{translate("delete_account")}
div.modal-body#delete-account-modal
p !{translate("delete_account_warning_message_3")}
p
strong This will also delete your account on Overleaf v1!
form(novalidate, name="deleteAccountForm")
label #{translate('email')}
input.form-control(