only check captchas in prod
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s
All checks were successful
Deploy API / deploy (ubuntu-latest, 2.44.0) (push) Successful in 45s
This commit is contained in:
parent
78b7e1a61a
commit
5248c862a4
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user