From e1532f068a349d02d87c2aa5ec49059606f669cc Mon Sep 17 00:00:00 2001 From: Davinder Singh Date: Thu, 12 Oct 2023 10:55:29 +0100 Subject: [PATCH] sending emails to user when SSO is enabled (#15133) Co-authored-by: Miguel Serrano GitOrigin-RevId: 1b485a09844edc8f71f88fa07439581afc007749 --- .../app/src/Features/Email/EmailBuilder.js | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/services/web/app/src/Features/Email/EmailBuilder.js b/services/web/app/src/Features/Email/EmailBuilder.js index db68342d48..092d96cbbd 100644 --- a/services/web/app/src/Features/Email/EmailBuilder.js +++ b/services/web/app/src/Features/Email/EmailBuilder.js @@ -445,6 +445,45 @@ templates.inviteNewUserToJoinManagedUsers = ctaTemplate({ }, }) +templates.managedUsersEnabledSSO = ctaTemplate({ + subject(opts) { + return `Action required: Authenticate your Overleaf account` + }, + title(opts) { + return `Single sign-on enabled` + }, + message(opts) { + return [ + `Hi, +
+ Your group administrator has enabled single sign-on for your group. +
+
+
+ What does this mean for you? +
+
+
+ You won't need to remember a separate email address and password to sign in to Overleaf. + All you need to do is authenticate your existing Overleaf account with your SSO provider. +
+ `, + ] + }, + secondaryMessage(opts) { + return [``] + }, + ctaURL(opts) { + return opts.authenticateWithSSO + }, + ctaText(opts) { + return 'Authenticate with SSO' + }, + greeting() { + return '' + }, +}) + templates.managedUsersDisabledSSO = ctaTemplate({ subject(opts) { return `Action required: Set your Overleaf password`