mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
test if user/pass config is set and if not set auth: null
This commit is contained in:
parent
b67611094e
commit
676aa1358d
1 changed files with 2 additions and 2 deletions
|
@ -18,10 +18,10 @@ function createEmailClient() {
|
|||
host: emailConfig.smtp_host,
|
||||
port: emailConfig.smtp_port,
|
||||
secure: emailConfig.smtp_secure || false,
|
||||
auth: {
|
||||
auth: (emailConfig.smtp_user && emailConfig.smtp_pass) ? {
|
||||
user: emailConfig.smtp_user,
|
||||
pass: emailConfig.smtp_pass
|
||||
}
|
||||
} : null
|
||||
} as SMTPTransport.Options;
|
||||
|
||||
if (emailConfig.smtp_tls_reject_unauthorized !== undefined) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue