mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Used the paid signup email when auto login is enabled
refs https://github.com/TryGhost/Team/issues/1067 refs https://github.com/TryGhost/Ghost/commit/579b3443 This will eventually be the only type of email sent from this function, but for now is behind a feature flag for testing.
This commit is contained in:
parent
985fd5bb5e
commit
cef8cadd21
1 changed files with 3 additions and 0 deletions
|
@ -148,6 +148,9 @@ module.exports = function MembersAPI({
|
||||||
*/
|
*/
|
||||||
async sendSignupEmail(email) {
|
async sendSignupEmail(email) {
|
||||||
let requestedType = 'signup';
|
let requestedType = 'signup';
|
||||||
|
if (labsService.isSet('membersAutoLogin')) {
|
||||||
|
requestedType = 'signup-paid';
|
||||||
|
}
|
||||||
await sendEmailWithMagicLink({
|
await sendEmailWithMagicLink({
|
||||||
email,
|
email,
|
||||||
requestedType,
|
requestedType,
|
||||||
|
|
Loading…
Add table
Reference in a new issue