From 0300ffbdc655cb9880e52b6034e070ef2643db6b Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 31 Aug 2018 14:20:27 +0100 Subject: [PATCH] Bonus, add a link to the v1 settings page to change password --- services/web/app/views/user/settings.pug | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/web/app/views/user/settings.pug b/services/web/app/views/user/settings.pug index eb2b535efb..e2a395157b 100644 --- a/services/web/app/views/user/settings.pug +++ b/services/web/app/views/user/settings.pug @@ -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,12 @@ block content ng-disabled="changePasswordForm.$invalid" ) #{translate("change")} - + else + if settings.overleaf && settings.createV1AccountOnLogin + p + | To change your password + | , go to #[a(href=settings.overleaf.host+'/users/edit') Overleaf v1 settings] + | !{moduleIncludes("userSettings", locals)}