Bypass account registration captcha on test devices

This commit is contained in:
Ravi Khadiwala authored and Chris Eager committed 2022-06-13 15:01:46 -07:00
1 parent 8507b6a1f0
commit 327eb0219d
2 files changed
+44 -2

No files matched your search

@@ -728,8 +728,11 @@ public class AccountController {
Optional<String> pushChallenge,
String userAgent)
{
final String countryCode = Util.getCountryCode(number);
if (testDevices.containsKey(number)) {
return new CaptchaRequirement(false, false);
}
final String countryCode = Util.getCountryCode(number);
if (captchaToken.isPresent()) {
boolean validToken = recaptchaClient.verify(captchaToken.get(), sourceHost);