mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 10:06:53 +00:00
Bypass account registration captcha on test devices
This commit is contained in:
1 parent
8507b6a1f0
commit
327eb0219d
2 files changed
+44
-2
No files matched your search
+4
-1
@@ -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