summaryrefslogtreecommitdiffstats
path: root/config/accounts.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-03-28 20:52:39 +0300
committerGitHub <noreply@github.com>2017-03-28 20:52:39 +0300
commit0c36f5f4c27dce6207b1d8093f387d6a55a6da02 (patch)
treead3ebadd5bb7e1da31b151e1d06a6e20309b493c /config/accounts.js
parentb3cd2f212599f8d0f9b841c5cf1dfaf57a84d8d7 (diff)
parent5db786e2ddca5bc416612778bb0de0d8338003eb (diff)
downloadwekan-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.js7
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';