0
Fork 0
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:
Aileen Nowak 2018-12-17 15:02:47 +01:00 committed by GitHub
parent aa8e75914d
commit 506d013f25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 22 deletions

View file

@ -531,6 +531,7 @@ authentication = {
common.events.emit('setup.completed', setupUser); common.events.emit('setup.completed', setupUser);
if (config.get('sendWelcomeEmail')) {
return mail.utils.generateContent({data: data, template: 'welcome'}) return mail.utils.generateContent({data: data, template: 'welcome'})
.then((content) => { .then((content) => {
const message = { const message = {
@ -555,6 +556,9 @@ authentication = {
.return(setupUser); .return(setupUser);
} }
return setupUser;
}
function formatResponse(setupUser) { function formatResponse(setupUser) {
return {users: [setupUser]}; return {users: [setupUser]};
} }

View file

@ -83,5 +83,6 @@
"resize": true "resize": true
}, },
"compress": true, "compress": true,
"preloadHeaders": false "preloadHeaders": false,
"sendWelcomeEmail": true
} }