From 42d4574213ca96c74fccf57e1c11d9ff117c548e Mon Sep 17 00:00:00 2001 From: Chris Eager <79161849+eager-signal@users.noreply.github.com> Date: Fri, 13 Sep 2024 09:53:23 -0500 Subject: [PATCH] Update field names in HCaptchaResponse --- .../textsecuregcm/captcha/HCaptchaResponse.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java b/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java index 39db8c755..c3bd30cb6 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/captcha/HCaptchaResponse.java @@ -21,7 +21,7 @@ public class HCaptchaResponse { @JsonProperty boolean success; - @JsonProperty(value = "challenge-ts") + @JsonProperty(value = "challenge_ts") Duration challengeTs; @JsonProperty @@ -36,7 +36,7 @@ public class HCaptchaResponse { @JsonProperty float score; - @JsonProperty(value = "score-reasons") + @JsonProperty(value = "score_reason") List scoreReasons = Collections.emptyList(); public HCaptchaResponse() {