mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 05:36:47 +00:00
Remove obsolete "recaptcha"
This commit is contained in:
1 parent
4aadabfac0
commit
1134df88e2
3 files changed
+3
-4
No files matched your search
+1
-2
@@ -11,8 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = AnswerPushChallengeRequest.class, name = "rateLimitPushChallenge"),
|
||||
@JsonSubTypes.Type(value = AnswerCaptchaChallengeRequest.class, name = "captcha"),
|
||||
@JsonSubTypes.Type(value = AnswerCaptchaChallengeRequest.class, name = "recaptcha")
|
||||
@JsonSubTypes.Type(value = AnswerCaptchaChallengeRequest.class, name = "captcha")
|
||||
})
|
||||
public abstract class AnswerChallengeRequest {
|
||||
}
|
||||
+1
-1
@@ -13,7 +13,7 @@ public class RateLimitChallengeOptionManager {
|
||||
|
||||
private final RateLimiters rateLimiters;
|
||||
|
||||
public static final String OPTION_CAPTCHA = "recaptcha";
|
||||
public static final String OPTION_CAPTCHA = "captcha";
|
||||
public static final String OPTION_PUSH_CHALLENGE = "pushChallenge";
|
||||
|
||||
public RateLimitChallengeOptionManager(final RateLimiters rateLimiters) {
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import org.whispersystems.textsecuregcm.util.SystemMapper;
|
||||
class AnswerChallengeRequestTest {
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(strings = {"captcha", "recaptcha"})
|
||||
@ValueSource(strings = {"captcha"})
|
||||
void parse(final String type) throws JsonProcessingException {
|
||||
{
|
||||
final String pushChallengeJson = """
|
||||
|
||||
Reference in new issue
Block a user