1
0
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:
Puyodead1 2023-02-23 23:44:48 -05:00
parent ada821070b
commit ed5aa51a8f

View File

@ -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.",
); );