summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-24 23:49:07 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-02-24 23:49:07 +1100
commit048459b75f3ac8c788db3f225ecd8e7f4ff6e080 (patch)
tree2a0579a0e0775ce9eb6996bd1d868432a123328d /src/api
parentsend required_action in gateway for when email verification is required (diff)
parentMerge pull request #985 from Puyodead1/fix/email (diff)
downloadserver-048459b75f3ac8c788db3f225ecd8e7f4ff6e080.tar.xz
Merge branch 'master' of github.com:fosscord/fosscord-server
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) {