mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 01:31:12 -05:00
Implement two-layer CAPTCHA bypass
This commit is contained in:
@@ -10,6 +10,7 @@ import { supabase } from '@/integrations/supabase/client';
|
||||
import { useToast } from '@/hooks/use-toast';
|
||||
import { TurnstileCaptcha } from './TurnstileCaptcha';
|
||||
import { notificationService } from '@/lib/notificationService';
|
||||
import { useCaptchaBypass } from '@/hooks/useCaptchaBypass';
|
||||
|
||||
interface AuthModalProps {
|
||||
open: boolean;
|
||||
@@ -34,9 +35,7 @@ export function AuthModal({ open, onOpenChange, defaultTab = 'signin' }: AuthMod
|
||||
displayName: ''
|
||||
});
|
||||
|
||||
// Detect iframe environment and make CAPTCHA optional for preview compatibility
|
||||
const isInIframe = window.self !== window.top;
|
||||
const requireCaptcha = !isInIframe;
|
||||
const { requireCaptcha } = useCaptchaBypass();
|
||||
|
||||
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
setFormData(prev => ({
|
||||
|
||||
Reference in New Issue
Block a user