mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #17003 from overleaf/msm-remove-env-confirmation-emails
[web] Remove env to skip sending confirmation emails GitOrigin-RevId: 70f67f4920e9e2b40cd1219a40704885ce6956a4
This commit is contained in:
parent
bbb5804c39
commit
07a46545bb
1 changed files with 0 additions and 6 deletions
|
@ -19,12 +19,6 @@ function sendConfirmationEmail(userId, email, emailTemplate, callback) {
|
|||
emailTemplate = 'confirmEmail'
|
||||
}
|
||||
|
||||
// when force-migrating accounts to v2 from v1, we don't want to send confirmation messages -
|
||||
// setting this env var allows us to turn this behaviour off
|
||||
if (process.env.SHARELATEX_NO_CONFIRMATION_MESSAGES != null) {
|
||||
return callback(null)
|
||||
}
|
||||
|
||||
email = EmailHelper.parseEmail(email)
|
||||
if (!email) {
|
||||
return callback(new Error('invalid email'))
|
||||
|
|
Loading…
Reference in a new issue