mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 10:51:12 -05:00
Fix: Captcha not visible on sign-in
This commit is contained in:
@@ -271,15 +271,26 @@ export default function Auth() {
|
|||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label>Security Verification</Label>
|
<Label>Security Verification</Label>
|
||||||
<TurnstileCaptcha
|
<div className="border border-dashed border-muted-foreground/30 rounded-lg p-4">
|
||||||
key={signInCaptchaKey}
|
<TurnstileCaptcha
|
||||||
onSuccess={setSignInCaptchaToken}
|
key={signInCaptchaKey}
|
||||||
onError={() => setSignInCaptchaToken(null)}
|
onSuccess={(token) => {
|
||||||
onExpire={() => setSignInCaptchaToken(null)}
|
console.log('Sign-in CAPTCHA success:', token);
|
||||||
siteKey={import.meta.env.VITE_TURNSTILE_SITE_KEY}
|
setSignInCaptchaToken(token);
|
||||||
theme="auto"
|
}}
|
||||||
className="flex justify-center"
|
onError={(error) => {
|
||||||
/>
|
console.log('Sign-in CAPTCHA error:', error);
|
||||||
|
setSignInCaptchaToken(null);
|
||||||
|
}}
|
||||||
|
onExpire={() => {
|
||||||
|
console.log('Sign-in CAPTCHA expired');
|
||||||
|
setSignInCaptchaToken(null);
|
||||||
|
}}
|
||||||
|
siteKey={import.meta.env.VITE_TURNSTILE_SITE_KEY}
|
||||||
|
theme="auto"
|
||||||
|
className="flex justify-center"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user