summaryrefslogtreecommitdiffstats
path: root/config/accounts.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/accounts.js')
-rw-r--r--config/accounts.js8
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) {
};
});
}
-