mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 04:48:04 +01:00
Bypass account registration captcha on test devices
This commit is contained in:
committed by
Chris Eager
parent
8507b6a1f0
commit
327eb0219d
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user