fix(email): do not pass auth object to transport if no auth data present

re #312
pull/376/head
sct 4 years ago
parent fc12ab84d9
commit d5eb4d8d43

@ -29,10 +29,13 @@ class EmailAgent implements NotificationAgent {
host: emailSettings.smtpHost,
port: emailSettings.smtpPort,
secure: emailSettings.secure,
auth: {
user: emailSettings.authUser,
pass: emailSettings.authPass,
},
auth:
emailSettings.authUser && emailSettings.authPass
? {
user: emailSettings.authUser,
pass: emailSettings.authPass,
}
: undefined,
});
}

Loading…
Cancel
Save