summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2023-02-24 07:45:29 -0500
committerPuyodead1 <puyodead@protonmail.com>2023-02-24 07:45:29 -0500
commita22cdaaac62b888997fae37a285c68e056c01e16 (patch)
treec22b502b5e6f79d152af4551ddb6b8a4abe0a24b /src/api
parentMerge pull request #984 from fosscord/dependabot/npm_and_yarn/http-cache-sema... (diff)
downloadserver-a22cdaaac62b888997fae37a285c68e056c01e16.tar.xz
fix a few issues with emails
Diffstat (limited to 'src/api')
-rw-r--r--src/api/routes/auth/verify/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts
index cdbd371a..ac12bbb7 100644
--- a/src/api/routes/auth/verify/index.ts
+++ b/src/api/routes/auth/verify/index.ts
@@ -45,7 +45,7 @@ router.post(
 
 		const config = Config.get();
 
-		if (config.register.requireCaptcha) {
+		if (config.register.requireCaptcha && config.security.captcha.enabled) {
 			const { sitekey, service } = config.security.captcha;
 
 			if (!captcha_key) {