Update Option.RECAPTCHA to Option.CAPTCHA

This commit is contained in:
Chris Eager
2024-03-14 09:52:26 -05:00
committed by Cody Henthorne
parent 8f884fdd5c
commit 0c6761fcfd
3 changed files with 11 additions and 4 deletions

View File

@@ -44,6 +44,8 @@ public class ProofRequiredException extends NonSuccessfulResponseCodeException {
switch (raw) {
case "recaptcha":
options.add(Option.RECAPTCHA);
case "captcha":
options.add(Option.CAPTCHA);
break;
case "pushChallenge":
options.add(Option.PUSH_CHALLENGE);
@@ -58,6 +60,6 @@ public class ProofRequiredException extends NonSuccessfulResponseCodeException {
}
public enum Option {
RECAPTCHA, PUSH_CHALLENGE
@Deprecated RECAPTCHA, CAPTCHA, PUSH_CHALLENGE
}
}

View File

@@ -16,7 +16,7 @@ class SubmitRecaptchaChallengePayload {
public SubmitRecaptchaChallengePayload() {}
public SubmitRecaptchaChallengePayload(String challenge, String recaptchaToken) {
this.type = "recaptcha";
this.type = "captcha";
this.token = challenge;
this.captcha = recaptchaToken;
}