Merge pull request #943 from Zokormazo/smtp

Don't send emails if missing smtp host
This commit is contained in:
Lauri Ojansivu 2017-03-28 20:52:39 +03:00 committed by GitHub
commit 0c36f5f4c2
4 changed files with 47 additions and 35 deletions

View file

@ -16,12 +16,17 @@ AccountsTemplates.addFields([{
template: 'invitationCode',
}]);
let sendVerificationEmail = false;
if (process.env.MAIL_URL) {
sendVerificationEmail = true;
}
AccountsTemplates.configure({
defaultLayout: 'userFormsLayout',
defaultContentRegion: 'content',
confirmPassword: false,
enablePasswordChange: true,
sendVerificationEmail: true,
sendVerificationEmail,
showForgotPasswordLink: true,
onLogoutHook() {
const homePage = 'home';