only check captchas in prod
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s

This commit is contained in:
Braydon 2024-09-19 09:59:21 -04:00
parent 78b7e1a61a
commit 5248c862a4

@ -34,7 +34,7 @@ public final class CaptchaService {
.header(HttpHeaders.CONTENT_TYPE, "application/json") .header(HttpHeaders.CONTENT_TYPE, "application/json")
.body(body) .body(body)
.asJson(); .asJson();
if (/*EnvironmentUtils.isProduction() && */!response.getBody().getObject().getBoolean("success")) { if (EnvironmentUtils.isProduction() && !response.getBody().getObject().getBoolean("success")) {
throw new BadRequestException(Error.CAPTCHA_INVALID); throw new BadRequestException(Error.CAPTCHA_INVALID);
} }
} }