Remove obsolete "recaptcha"

This commit is contained in:
Chris Eager authored and Chris Eager committed 2024-06-24 14:15:27 -05:00
1 parent 4aadabfac0
commit 1134df88e2
3 files changed
+3 -4

No files matched your search

@@ -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 {
}
@@ -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) {
@@ -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 = """