mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-20 07:23:40 +00:00
Merge pull request #23733 from overleaf/msm-configurable-login-title
[web] Add `OVERLEAF_LOGIN_SUPPORT_TITLE` for CE/SP GitOrigin-RevId: 5a50d17ded67b68c72dbaeab5172fc283b5aaa01
This commit is contained in:
parent
78297efeab
commit
d22ffb926d
3 changed files with 9 additions and 2 deletions
|
@ -335,6 +335,10 @@ if (process.env.OVERLEAF_LOGIN_SUPPORT_TEXT != null) {
|
|||
settings.nav.login_support_text = process.env.OVERLEAF_LOGIN_SUPPORT_TEXT
|
||||
}
|
||||
|
||||
if (process.env.OVERLEAF_LOGIN_SUPPORT_TITLE != null) {
|
||||
settings.nav.login_support_title = process.env.OVERLEAF_LOGIN_SUPPORT_TITLE
|
||||
}
|
||||
|
||||
// Sending Email
|
||||
// -------------
|
||||
//
|
||||
|
|
|
@ -241,7 +241,7 @@ const UserPagesController = {
|
|||
AuthenticationController.setRedirectInSession(req, req.query.redir)
|
||||
}
|
||||
res.render('user/login', {
|
||||
title: 'login',
|
||||
title: Settings.nav?.login_support_title || 'login',
|
||||
login_support_text: Settings.nav?.login_support_text,
|
||||
})
|
||||
},
|
||||
|
|
|
@ -7,7 +7,10 @@ block content
|
|||
.col-md-6.col-md-offset-3.col-lg-4.col-lg-offset-4
|
||||
.card
|
||||
.page-header
|
||||
h1 #{translate("log_in")}
|
||||
if title
|
||||
h1 !{title}
|
||||
else
|
||||
h1 #{translate("log_in")}
|
||||
form(data-ol-async-form, name="loginForm", action='/login', method="POST")
|
||||
input(name='_csrf', type='hidden', value=csrfToken)
|
||||
+formMessages()
|
||||
|
|
Loading…
Add table
Reference in a new issue