Merge pull request #22264 from overleaf/msm-login_support_text-env

[web] Add `OVERLEAF_LOGIN_SUPPORT_TEXT` for CE/SP login pages

GitOrigin-RevId: 7f473b6a3448b4cb73c0c954d0ea1db34b980d6c
This commit is contained in:
Miguel Serrano 2025-01-10 09:57:52 +01:00 committed by Copybot
parent 0e6318ea0c
commit fe623d2297
4 changed files with 13 additions and 0 deletions

View file

@ -331,6 +331,10 @@ if (process.env.OVERLEAF_HEADER_EXTRAS != null) {
}
}
if (process.env.OVERLEAF_LOGIN_SUPPORT_TEXT != null) {
settings.nav.login_support_text = process.env.OVERLEAF_LOGIN_SUPPORT_TEXT
}
// Sending Email
// -------------
//

View file

@ -222,6 +222,7 @@ const UserPagesController = {
}
res.render('user/login', {
title: 'login',
login_support_text: Settings.nav?.login_support_text,
})
},

View file

@ -40,3 +40,7 @@ block content
span(data-ol-inflight="idle") #{translate("login")}
span(hidden data-ol-inflight="pending") #{translate("logging_in")}…
a.pull-right(href='/user/password/reset') #{translate("forgot_your_password")}?
if login_support_text
hr
p.text-center !{login_support_text}

View file

@ -285,3 +285,7 @@ input[type='button'] {
padding-left: 20px;
padding-right: 0;
}
.login-btn-dynamic-text {
white-space: normal;
}