diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-03-28 20:52:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-28 20:52:39 +0300 |
commit | 0c36f5f4c27dce6207b1d8093f387d6a55a6da02 (patch) | |
tree | ad3ebadd5bb7e1da31b151e1d06a6e20309b493c /config/accounts.js | |
parent | b3cd2f212599f8d0f9b841c5cf1dfaf57a84d8d7 (diff) | |
parent | 5db786e2ddca5bc416612778bb0de0d8338003eb (diff) | |
download | wekan-0c36f5f4c27dce6207b1d8093f387d6a55a6da02.tar.gz wekan-0c36f5f4c27dce6207b1d8093f387d6a55a6da02.tar.bz2 wekan-0c36f5f4c27dce6207b1d8093f387d6a55a6da02.zip |
Merge pull request #943 from Zokormazo/smtp
Don't send emails if missing smtp host
Diffstat (limited to 'config/accounts.js')
-rw-r--r-- | config/accounts.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config/accounts.js b/config/accounts.js index e7faa4cd..279325fb 100644 --- a/config/accounts.js +++ b/config/accounts.js @@ -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'; |