|
|
@@ -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'))
|