1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Disable hCaptcha compatibility with reCAPTCHA

This commit is contained in:
Quentin Gliech
2024-05-14 12:02:05 +02:00
parent cef069564a
commit e4d6bbee14
2 changed files with 2 additions and 4 deletions

View File

@@ -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,