mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Ability to not send welcome email (#10293)
no issue - We need to be able to not send the welcome email if needed - Intruduces a new possible config setting `sendWelcomeEmail` which is set to `true` by default
This commit is contained in:
parent
aa8e75914d
commit
506d013f25
2 changed files with 27 additions and 22 deletions
|
@ -531,6 +531,7 @@ authentication = {
|
|||
|
||||
common.events.emit('setup.completed', setupUser);
|
||||
|
||||
if (config.get('sendWelcomeEmail')) {
|
||||
return mail.utils.generateContent({data: data, template: 'welcome'})
|
||||
.then((content) => {
|
||||
const message = {
|
||||
|
@ -555,6 +556,9 @@ authentication = {
|
|||
.return(setupUser);
|
||||
}
|
||||
|
||||
return setupUser;
|
||||
}
|
||||
|
||||
function formatResponse(setupUser) {
|
||||
return {users: [setupUser]};
|
||||
}
|
||||
|
|
|
@ -83,5 +83,6 @@
|
|||
"resize": true
|
||||
},
|
||||
"compress": true,
|
||||
"preloadHeaders": false
|
||||
"preloadHeaders": false,
|
||||
"sendWelcomeEmail": true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue