From 07a46545bb86a3e89e4cb40772bb3c148afd15a5 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:48:16 +0000 Subject: [PATCH] Merge pull request #17003 from overleaf/msm-remove-env-confirmation-emails [web] Remove env to skip sending confirmation emails GitOrigin-RevId: 70f67f4920e9e2b40cd1219a40704885ce6956a4 --- .../app/src/Features/User/UserEmailsConfirmationHandler.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/services/web/app/src/Features/User/UserEmailsConfirmationHandler.js b/services/web/app/src/Features/User/UserEmailsConfirmationHandler.js index 399c4a080d..b800e7db30 100644 --- a/services/web/app/src/Features/User/UserEmailsConfirmationHandler.js +++ b/services/web/app/src/Features/User/UserEmailsConfirmationHandler.js @@ -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'))