diff --git a/crates/handlers/src/captcha.rs b/crates/handlers/src/captcha.rs index 6fe7c116f..b4a3a4396 100644 --- a/crates/handlers/src/captcha.rs +++ b/crates/handlers/src/captcha.rs @@ -212,9 +212,7 @@ impl Form { } // hCaptcha - // XXX: this is also allowing g-recaptcha-response, because apparently hCaptcha thought - // it was a good idea to send both - (CaptchaService::HCaptcha, _, Some(response), None) => { + (CaptchaService::HCaptcha, None, Some(response), None) => { Request::post(HCAPTCHA_VERIFY_URL) .body(VerificationRequest { secret, diff --git a/templates/components/captcha.html b/templates/components/captcha.html index 14e15a2cb..f7cf67160 100644 --- a/templates/components/captcha.html +++ b/templates/components/captcha.html @@ -41,7 +41,7 @@ limitations under the License. {%- elif captcha.service == "cloudflare_turnstile" -%} {%- elif captcha.service == "hcaptcha" -%} - + {%- else -%} {{ throw(message="Invalid captcha service setup") }} {%- endif %}