diff options
author | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 23:44:48 -0500 |
---|---|---|
committer | Puyodead1 <puyodead@protonmail.com> | 2023-02-23 23:44:48 -0500 |
commit | ed5aa51a8f0bf2e6b10f61f191b56c29ea989f0d (patch) | |
tree | b746e1a44c5e38fd8ecbea3037344e60adcff35f | |
parent | add right to resend verification emails (diff) | |
download | server-ed5aa51a8f0bf2e6b10f61f191b56c29ea989f0d.tar.xz |
fix for when secure is set to false
-rw-r--r-- | src/util/util/Email.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/util/Email.ts b/src/util/util/Email.ts index cbcc5b60..5610b56e 100644 --- a/src/util/util/Email.ts +++ b/src/util/util/Email.ts @@ -59,7 +59,7 @@ const transporters = { Config.get().email.smtp; // ensure all required configuration values are set - if (!host || !port || !secure || !username || !password) + if (!host || !port || secure === null || !username || !password) return console.error( "[Email] SMTP has not been configured correctly.", ); |