mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add option to disable email confirmation banner (#2469)
GitOrigin-RevId: ef5e08a6359346cc53dff4ce7978affb71fdb556
This commit is contained in:
parent
b055612e3c
commit
1c759ad413
3 changed files with 6 additions and 0 deletions
|
@ -361,6 +361,7 @@ module.exports = function(webRouter, privateApiRouter, publicApiRouter) {
|
|||
hasSamlFeature: Features.hasFeature('saml'),
|
||||
samlInitPath: _.get(Settings, ['saml', 'ukamf', 'initPath']),
|
||||
siteUrl: Settings.siteUrl,
|
||||
emailConfirmationDisabled: Settings.emailConfirmationDisabled,
|
||||
recaptchaSiteKeyV3:
|
||||
Settings.recaptcha != null ? Settings.recaptcha.siteKeyV3 : undefined,
|
||||
recaptchaDisabled:
|
||||
|
|
|
@ -567,6 +567,8 @@ module.exports = settings =
|
|||
|
||||
validRootDocExtensions: ['tex', 'Rtex', 'ltx']
|
||||
|
||||
emailConfirmationDisabled: (process.env['EMAIL_CONFIRMATION_DISABLED'] == "true") or false
|
||||
|
||||
# allowedImageNames: [
|
||||
# {imageName: 'texlive-full:2017.1', imageDesc: 'TeXLive 2017'}
|
||||
# {imageName: 'wl_texlive:2018.1', imageDesc: 'Legacy OL TeXLive 2015'}
|
||||
|
|
|
@ -102,6 +102,9 @@ define(['base'], function(App) {
|
|||
) {
|
||||
$scope.userEmails = []
|
||||
$scope.showConfirmEmail = email => {
|
||||
if (ExposedSettings.emailConfirmationDisabled) {
|
||||
return false
|
||||
}
|
||||
if (!email.confirmedAt && !email.hide) {
|
||||
if (
|
||||
email.affiliation &&
|
||||
|
|
Loading…
Reference in a new issue