From 5248c862a4afe9f8e61ef0140b50e630223e71bd Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Thu, 19 Sep 2024 09:59:21 -0400 Subject: [PATCH] only check captchas in prod --- src/main/java/cc/pulseapp/api/service/CaptchaService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/pulseapp/api/service/CaptchaService.java b/src/main/java/cc/pulseapp/api/service/CaptchaService.java index fffdbca..299dbef 100644 --- a/src/main/java/cc/pulseapp/api/service/CaptchaService.java +++ b/src/main/java/cc/pulseapp/api/service/CaptchaService.java @@ -34,7 +34,7 @@ public final class CaptchaService { .header(HttpHeaders.CONTENT_TYPE, "application/json") .body(body) .asJson(); - if (/*EnvironmentUtils.isProduction() && */!response.getBody().getObject().getBoolean("success")) { + if (EnvironmentUtils.isProduction() && !response.getBody().getObject().getBoolean("success")) { throw new BadRequestException(Error.CAPTCHA_INVALID); } }