소스 검색

Merge pull request #17234 from overleaf/jel-clear-saml-data

[web] Clear linking data for all linked users in group

GitOrigin-RevId: 1b7b3642a37a33c8b1499aee9c98300551bccea0
Jessica Lawshe 2 년 전
부모
커밋
8d4766f5fa
1개의 변경된 파일31개의 추가작업 그리고 0개의 파일을 삭제
  1. 31 0
      services/web/app/src/Features/Email/EmailBuilder.js

+ 31 - 0
services/web/app/src/Features/Email/EmailBuilder.js

@@ -516,6 +516,37 @@ templates.groupSSOLinkingInvite = ctaTemplate({
   },
 })
 
+templates.groupSSOReauthenticate = ctaTemplate({
+  subject(opts) {
+    return 'Action required: Reauthenticate your Overleaf account'
+  },
+  title(opts) {
+    return 'Action required: Reauthenticate SSO'
+  },
+  message(opts) {
+    return [
+      `Hi,
+      <div>
+      Single sign-on for your Overleaf group has been updated. 
+      This means you need to reauthenticate your Overleaf account with your group’s SSO provider. 
+      </div>
+      `,
+    ]
+  },
+  secondaryMessage(opts) {
+    return [``]
+  },
+  ctaURL(opts) {
+    return opts.authenticateWithSSO
+  },
+  ctaText(opts) {
+    return 'Reauthenticate now'
+  },
+  greeting() {
+    return ''
+  },
+})
+
 templates.groupSSODisabled = ctaTemplate({
   subject(opts) {
     return `Action required: Set your Overleaf password`