Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
8e5e89bb
authored
May 22, 2026
by
JunXiaoRuo
Committed by
GitHub
May 22, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 切换新版前端Turnstile 开启后注册页未显示验证的问题 (#5011)
Co-authored-by: Codex <codex@users.noreply.github.com>
parent
e13d6734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
web/default/src/features/auth/sign-up/components/sign-up-form.tsx
+12
-9
No files found.
web/default/src/features/auth/sign-up/components/sign-up-form.tsx
View file @
8e5e89bb
...
...
@@ -148,6 +148,8 @@ export function SignUpForm({
}
}
if
(
!
validateTurnstile
())
return
setIsLoading
(
true
)
try
{
const
res
=
await
register
({
...
...
@@ -318,18 +320,19 @@ export function SignUpForm({
</
Button
>
</
div
>
{
/* Turnstile */
}
{
isTurnstileEnabled
&&
(
<
div
className=
'mt-2'
>
<
Turnstile
siteKey=
{
turnstileSiteKey
}
onVerify=
{
setTurnstileToken
}
/>
</
div
>
)
}
</>
)
}
{
/* Turnstile */
}
{
isTurnstileEnabled
&&
(
<
div
className=
'mt-2'
>
<
Turnstile
siteKey=
{
turnstileSiteKey
}
onVerify=
{
setTurnstileToken
}
/>
</
div
>
)
}
<
LegalConsent
status=
{
status
}
checked=
{
agreedToLegal
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment