mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
fix for when secure is set to false
This commit is contained in:
parent
ada821070b
commit
ed5aa51a8f
@ -59,7 +59,7 @@ const transporters = {
|
|||||||
Config.get().email.smtp;
|
Config.get().email.smtp;
|
||||||
|
|
||||||
// ensure all required configuration values are set
|
// ensure all required configuration values are set
|
||||||
if (!host || !port || !secure || !username || !password)
|
if (!host || !port || secure === null || !username || !password)
|
||||||
return console.error(
|
return console.error(
|
||||||
"[Email] SMTP has not been configured correctly.",
|
"[Email] SMTP has not been configured correctly.",
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user