mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge branch 'master' of https://github.com/sharelatex/web-sharelatex
This commit is contained in:
commit
40b30b957a
2 changed files with 84 additions and 76 deletions
|
@ -112,6 +112,11 @@ module.exports = (app)->
|
||||||
res.locals.formatPrice = SubscriptionFormatters.formatPrice
|
res.locals.formatPrice = SubscriptionFormatters.formatPrice
|
||||||
next()
|
next()
|
||||||
|
|
||||||
|
app.use (req, res, next)->
|
||||||
|
res.locals.externalAuthenticationSystemUsed = ->
|
||||||
|
Settings.ldap?
|
||||||
|
next()
|
||||||
|
|
||||||
app.use (req, res, next)->
|
app.use (req, res, next)->
|
||||||
if req.session.user?
|
if req.session.user?
|
||||||
res.locals.user =
|
res.locals.user =
|
||||||
|
|
|
@ -19,6 +19,7 @@ block content
|
||||||
h3 #{translate("update_account_info")}
|
h3 #{translate("update_account_info")}
|
||||||
form(async-form="settings", name="settingsForm", method="POST", action="/user/settings", novalidate)
|
form(async-form="settings", name="settingsForm", method="POST", action="/user/settings", novalidate)
|
||||||
input(type="hidden", name="_csrf", value=csrfToken)
|
input(type="hidden", name="_csrf", value=csrfToken)
|
||||||
|
if !externalAuthenticationSystemUsed()
|
||||||
.form-group
|
.form-group
|
||||||
label(for='email') #{translate("email")}
|
label(for='email') #{translate("email")}
|
||||||
input.form-control(
|
input.form-control(
|
||||||
|
@ -51,7 +52,7 @@ block content
|
||||||
type='submit',
|
type='submit',
|
||||||
ng-disabled="settingsForm.$invalid"
|
ng-disabled="settingsForm.$invalid"
|
||||||
) #{translate("update")}
|
) #{translate("update")}
|
||||||
|
if !externalAuthenticationSystemUsed()
|
||||||
.col-md-5.col-md-offset-1
|
.col-md-5.col-md-offset-1
|
||||||
h3 #{translate("change_password")}
|
h3 #{translate("change_password")}
|
||||||
form(async-form="changepassword", name="changePasswordForm", action="/user/password/update", method="POST", novalidate)
|
form(async-form="changepassword", name="changePasswordForm", action="/user/password/update", method="POST", novalidate)
|
||||||
|
@ -100,6 +101,8 @@ block content
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
|
if !externalAuthenticationSystemUsed()
|
||||||
|
|
||||||
p.small
|
p.small
|
||||||
| #{translate("newsletter_info_and_unsubscribe")}
|
| #{translate("newsletter_info_and_unsubscribe")}
|
||||||
a(
|
a(
|
||||||
|
|
Loading…
Reference in a new issue