mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Added new mail type for member email update
refs https://github.com/TryGhost/members.js/issues/30 - Added new `updateEmail` type for sending email address update confirmation mail to member - The link in email updates member's email address
This commit is contained in:
parent
935acfdb88
commit
d2cf7111ec
1 changed files with 22 additions and 0 deletions
|
@ -42,6 +42,8 @@ function createApiInstance() {
|
|||
return `📫 Confirm your subscription to ${siteTitle}`;
|
||||
case 'signup':
|
||||
return `🙌 Complete your sign up to ${siteTitle}!`;
|
||||
case 'updateEmail':
|
||||
return `📫 Confirm your email update for ${siteTitle}!`;
|
||||
case 'signin':
|
||||
default:
|
||||
return `🔑 Secure sign in link for ${siteTitle}`;
|
||||
|
@ -86,6 +88,24 @@ function createApiInstance() {
|
|||
Sent to ${email}
|
||||
If you did not make this request, you can simply delete this message. You will not be signed up, and no account will be created for you.
|
||||
`;
|
||||
case 'updateEmail':
|
||||
return `
|
||||
Hey there,
|
||||
|
||||
You're one tap away from updating your email for ${siteTitle} — please confirm this is as your new email with this link:
|
||||
|
||||
${url}
|
||||
|
||||
For your security, the link will expire in 10 minutes time.
|
||||
|
||||
All the best!
|
||||
The team at ${siteTitle}
|
||||
|
||||
---
|
||||
|
||||
Sent to ${email}
|
||||
If you did not make this request, you can simply delete this message.
|
||||
`;
|
||||
case 'signin':
|
||||
default:
|
||||
return `
|
||||
|
@ -114,6 +134,8 @@ function createApiInstance() {
|
|||
return subscribeEmail({url, email, siteTitle});
|
||||
case 'signup':
|
||||
return signupEmail({url, email, siteTitle});
|
||||
case 'updateEmail':
|
||||
return subscribeEmail({url, email, siteTitle});
|
||||
case 'signin':
|
||||
default:
|
||||
return signinEmail({url, email, siteTitle});
|
||||
|
|
Loading…
Add table
Reference in a new issue