mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
Updated mail template for member email change
no issue The email change verification template was using the same as for `subscribe`, which did not have the right messaging that needs to be communicated about the action thats happening in this case. Updates the email template to same as what we use for email verification for support/newsletter address
This commit is contained in:
parent
52bac88136
commit
c4c6bdf353
@ -6,6 +6,7 @@ const models = require('../../models');
|
||||
const signinEmail = require('./emails/signin');
|
||||
const signupEmail = require('./emails/signup');
|
||||
const subscribeEmail = require('./emails/subscribe');
|
||||
const updateEmail = require('./emails/updateEmail');
|
||||
const SingleUseTokenProvider = require('./SingleUseTokenProvider');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
|
||||
@ -93,22 +94,19 @@ function createApiInstance(config) {
|
||||
`;
|
||||
case 'updateEmail':
|
||||
return `
|
||||
Hey there,
|
||||
Hey there,
|
||||
|
||||
You're one tap away from updating your email for ${siteTitle} — please confirm this is as your new email with this link:
|
||||
Please confirm your email address with this link:
|
||||
|
||||
${url}
|
||||
${url}
|
||||
|
||||
For your security, the link will expire in 24 hours time.
|
||||
For your security, the link will expire in 24 hours time.
|
||||
|
||||
All the best!
|
||||
The team at ${siteTitle}
|
||||
---
|
||||
|
||||
---
|
||||
|
||||
Sent to ${email}
|
||||
If you did not make this request, you can simply delete this message.
|
||||
`;
|
||||
Sent to ${email}
|
||||
If you did not make this request, you can simply delete this message. This email address will not be used.
|
||||
`;
|
||||
case 'signin':
|
||||
default:
|
||||
return `
|
||||
@ -142,7 +140,7 @@ function createApiInstance(config) {
|
||||
case 'signup':
|
||||
return signupEmail({url, email, siteTitle, accentColor, siteDomain, siteUrl});
|
||||
case 'updateEmail':
|
||||
return subscribeEmail({url, email, siteTitle, accentColor, siteDomain, siteUrl});
|
||||
return updateEmail({url, email, siteTitle, accentColor, siteDomain, siteUrl});
|
||||
case 'signin':
|
||||
default:
|
||||
return signinEmail({url, email, siteTitle, accentColor, siteDomain, siteUrl});
|
||||
|
Loading…
Reference in New Issue
Block a user