From 1430ba68dcc0906eca6fb159168003a1de26cef5 Mon Sep 17 00:00:00 2001 From: Qi HU Date: Sun, 19 Oct 2025 23:13:33 +0800 Subject: [PATCH] Switch reCAPTCHA endpoints to recaptcha.net Signed-off-by: Qi HU --- app/Services/Captcha/Drivers/RecaptchaV2CaptchaDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Captcha/Drivers/RecaptchaV2CaptchaDriver.php b/app/Services/Captcha/Drivers/RecaptchaV2CaptchaDriver.php index 04d0a157..7c9a8062 100644 --- a/app/Services/Captcha/Drivers/RecaptchaV2CaptchaDriver.php +++ b/app/Services/Captcha/Drivers/RecaptchaV2CaptchaDriver.php @@ -45,7 +45,7 @@ class RecaptchaV2CaptchaDriver implements CaptchaDriverInterface '%s
%s', htmlspecialchars($label, ENT_QUOTES, 'UTF-8'), $attributes, - '' + '' ); } @@ -74,7 +74,7 @@ class RecaptchaV2CaptchaDriver implements CaptchaDriverInterface $data['remoteip'] = $remoteIp; } - $result = $this->sendVerificationRequest('https://www.google.com/recaptcha/api/siteverify', $data); + $result = $this->sendVerificationRequest('https://www.recaptcha.net/recaptcha/api/siteverify', $data); if (!($result['success'] ?? false)) { throw new CaptchaValidationException('Captcha verification failed.');