Merge pull request #13866 from overleaf/jk-managed-users-dont-send-email

[web] Don't send email to offboarded user

GitOrigin-RevId: 6ed1fc875d5476c1c054a72d9188214d582e1b4b
This commit is contained in:
June Kelly 2023-07-14 10:12:19 +01:00 committed by Copybot
parent bf92436e6f
commit 773d83dd17

View file

@ -498,30 +498,6 @@ templates.userOnboardingEmail = NoCTAEmailTemplate({
},
})
templates.managedUserOffboarded = ctaTemplate({
subject() {
return `Your account has been deleted - ${settings.appName}`
},
title() {
return `Your account has been deleted`
},
message() {
return [
'Your group administrator has deleted your account. Contact your administrator to learn more about it.',
'You can create a new account if you want to use a different email address.',
]
},
secondaryMessage() {
return []
},
ctaText() {
return 'Create a new account'
},
ctaURL() {
return `${settings.siteUrl}/register`
},
})
templates.securityAlert = NoCTAEmailTemplate({
subject(opts) {
return `Overleaf security note: ${opts.action}`