diff options
author | Julen Landa Alustiza <julen@zokormazo.info> | 2017-03-28 12:25:27 +0200 |
---|---|---|
committer | Julen Landa Alustiza <julen@zokormazo.info> | 2017-03-28 12:44:36 +0200 |
commit | 5db786e2ddca5bc416612778bb0de0d8338003eb (patch) | |
tree | bca79038b36102e05932aefe8a1b9f8cfa5e6450 /config/accounts.js | |
parent | feafc46bb5bc336da8d091cc7a0e8e4fc3c3e4f1 (diff) | |
download | wekan-5db786e2ddca5bc416612778bb0de0d8338003eb.tar.gz wekan-5db786e2ddca5bc416612778bb0de0d8338003eb.tar.bz2 wekan-5db786e2ddca5bc416612778bb0de0d8338003eb.zip |
Don't send emails if missing smtp host
Diffstat (limited to 'config/accounts.js')
-rw-r--r-- | config/accounts.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/config/accounts.js b/config/accounts.js index 51c0f49e..c33d6df2 100644 --- a/config/accounts.js +++ b/config/accounts.js @@ -17,12 +17,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'; @@ -69,4 +74,3 @@ if (Meteor.isServer) { }; }); } - |