From 8e5e89bb5b54ee1c78c3616feca96555865d286d Mon Sep 17 00:00:00 2001 From: JunXiaoRuo <47996900+JunXiaoRuo@users.noreply.github.com> Date: Fri, 22 May 2026 10:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=96=B0=E7=89=88=E5=89=8D=E7=AB=AFTurnstile=20=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E5=90=8E=E6=B3=A8=E5=86=8C=E9=A1=B5=E6=9C=AA=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=AA=8C=E8=AF=81=E7=9A=84=E9=97=AE=E9=A2=98=20(#5011?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Codex --- .../auth/sign-up/components/sign-up-form.tsx | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/web/default/src/features/auth/sign-up/components/sign-up-form.tsx b/web/default/src/features/auth/sign-up/components/sign-up-form.tsx index b5ebd0b8..6db51347 100644 --- a/web/default/src/features/auth/sign-up/components/sign-up-form.tsx +++ b/web/default/src/features/auth/sign-up/components/sign-up-form.tsx @@ -148,6 +148,8 @@ export function SignUpForm({ } } + if (!validateTurnstile()) return + setIsLoading(true) try { const res = await register({ @@ -318,18 +320,19 @@ export function SignUpForm({ - {/* Turnstile */} - {isTurnstileEnabled && ( -
- -
- )} )} + {/* Turnstile */} + {isTurnstileEnabled && ( +
+ +
+ )} +