mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(email): do not pass auth object to transport if no auth data present
re #312
This commit is contained in:
@@ -29,10 +29,13 @@ class EmailAgent implements NotificationAgent {
|
|||||||
host: emailSettings.smtpHost,
|
host: emailSettings.smtpHost,
|
||||||
port: emailSettings.smtpPort,
|
port: emailSettings.smtpPort,
|
||||||
secure: emailSettings.secure,
|
secure: emailSettings.secure,
|
||||||
auth: {
|
auth:
|
||||||
|
emailSettings.authUser && emailSettings.authPass
|
||||||
|
? {
|
||||||
user: emailSettings.authUser,
|
user: emailSettings.authUser,
|
||||||
pass: emailSettings.authPass,
|
pass: emailSettings.authPass,
|
||||||
},
|
}
|
||||||
|
: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user