mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Merge pull request #943 from Zokormazo/smtp
Don't send emails if missing smtp host
This commit is contained in:
commit
0c36f5f4c2
4 changed files with 47 additions and 35 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue