mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 06:31: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">
|
||||
<Label>Security Verification</Label>
|
||||
<TurnstileCaptcha
|
||||
key={signInCaptchaKey}
|
||||
onSuccess={setSignInCaptchaToken}
|
||||
onError={() => setSignInCaptchaToken(null)}
|
||||
onExpire={() => setSignInCaptchaToken(null)}
|
||||
siteKey={import.meta.env.VITE_TURNSTILE_SITE_KEY}
|
||||
theme="auto"
|
||||
className="flex justify-center"
|
||||
/>
|
||||
<div className="border border-dashed border-muted-foreground/30 rounded-lg p-4">
|
||||
<TurnstileCaptcha
|
||||
key={signInCaptchaKey}
|
||||
onSuccess={(token) => {
|
||||
console.log('Sign-in CAPTCHA success:', token);
|
||||
setSignInCaptchaToken(token);
|
||||
}}
|
||||
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>
|
||||
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user