Remove obsolete "recaptcha"
This commit is contained in:
parent
4aadabfac0
commit
1134df88e2
|
@ -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 = """
|
||||
|
|
Loading…
Reference in New Issue