summary refs log tree commit diff
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-02-23 23:44:48 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-02-23 23:44:48 -0500
commited5aa51a8f0bf2e6b10f61f191b56c29ea989f0d (patch)
treeb746e1a44c5e38fd8ecbea3037344e60adcff35f
parentadd right to resend verification emails (diff)
downloadserver-ed5aa51a8f0bf2e6b10f61f191b56c29ea989f0d.tar.xz
fix for when secure is set to false
-rw-r--r--src/util/util/Email.ts2
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.",
 			);