mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 05:01:11 +00:00
sending emails to user when SSO is enabled (#15133)
Co-authored-by: Miguel Serrano <mserranom@gmail.com> GitOrigin-RevId: 1b485a09844edc8f71f88fa07439581afc007749
This commit is contained in:
parent
2519a2c329
commit
e1532f068a
1 changed files with 39 additions and 0 deletions
|
@ -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,
|
||||
<div>
|
||||
Your group administrator has enabled single sign-on for your group.
|
||||
</div>
|
||||
</br>
|
||||
<div>
|
||||
<strong>What does this mean for you?</strong>
|
||||
</div>
|
||||
</br>
|
||||
<div>
|
||||
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.
|
||||
</div>
|
||||
`,
|
||||
]
|
||||
},
|
||||
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`
|
||||
|
|
Loading…
Reference in a new issue