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:
Fabien egg O'Carroll 2021-12-01 13:04:17 +02:00
parent 985fd5bb5e
commit cef8cadd21

View File

@ -148,6 +148,9 @@ module.exports = function MembersAPI({
*/
async sendSignupEmail(email) {
let requestedType = 'signup';
if (labsService.isSet('membersAutoLogin')) {
requestedType = 'signup-paid';
}
await sendEmailWithMagicLink({
email,
requestedType,