summaryrefslogtreecommitdiffstats
path: root/config/accounts.js
diff options
context:
space:
mode:
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';