Remove debug console logs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 15:51:53 +00:00
parent 5e789c7b4b
commit d78356e673
26 changed files with 37 additions and 156 deletions

View File

@@ -1,17 +1,15 @@
import { useEffect } from 'react';
import { logger } from '@/lib/logger';
export function useCaptchaBypass() {
// Single layer: Check if environment allows bypass
const bypassEnabled = import.meta.env.VITE_ALLOW_CAPTCHA_BYPASS === 'true';
// Log warning if bypass is active
useEffect(() => {
if (bypassEnabled && typeof window !== 'undefined') {
console.warn(
'⚠️ CAPTCHA BYPASS IS ACTIVE\n' +
'CAPTCHA verification is disabled via VITE_ALLOW_CAPTCHA_BYPASS=true\n' +
'This should ONLY be enabled in development/preview environments.\n' +
'Ensure VITE_ALLOW_CAPTCHA_BYPASS=false in production!'
logger.warn(
'⚠️ CAPTCHA BYPASS IS ACTIVE - ' +
'This should ONLY be enabled in development/preview environments.'
);
}
}, [bypassEnabled]);