From 879b096164342d1f59eb77963fcfd3ab70f6008b Mon Sep 17 00:00:00 2001 From: shingyu Date: Sun, 15 Mar 2026 18:18:14 +0800 Subject: [PATCH] feat(recaptcha): change recaptcha endpoint --- crates/handlers/src/captcha.rs | 2 +- templates/components/captcha.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/handlers/src/captcha.rs b/crates/handlers/src/captcha.rs index c206df5cf..1624edd69 100644 --- a/crates/handlers/src/captcha.rs +++ b/crates/handlers/src/captcha.rs @@ -14,7 +14,7 @@ use thiserror::Error; use crate::BoundActivityTracker; // https://developers.google.com/recaptcha/docs/verify#api_request -const RECAPTCHA_VERIFY_URL: &str = "https://www.google.com/recaptcha/api/siteverify"; +const RECAPTCHA_VERIFY_URL: &str = "https://www.recaptcha.net/recaptcha/api/siteverify"; // https://docs.hcaptcha.com/#verify-the-user-response-server-side const HCAPTCHA_VERIFY_URL: &str = "https://api.hcaptcha.com/siteverify"; diff --git a/templates/components/captcha.html b/templates/components/captcha.html index b21fa5f67..42b5e12b2 100644 --- a/templates/components/captcha.html +++ b/templates/components/captcha.html @@ -29,7 +29,7 @@ Please see LICENSE files in the repository root for full details. {% macro head() -%} {%- if captcha|default(False) -%} {%- if captcha.service == "recaptcha_v2" -%} - + {%- elif captcha.service == "cloudflare_turnstile" -%} {%- elif captcha.service == "hcaptcha" -%}