mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Don't send emails if missing smtp host
This commit is contained in:
parent
feafc46bb5
commit
5db786e2dd
4 changed files with 47 additions and 36 deletions
|
|
@ -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) {
|
|||
};
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue