From 0e487b42fad9b212a6b8191f3e6b4c642aabec9f Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sun, 29 Jun 2025 21:18:36 +0900 Subject: [PATCH] Comment out hCaptcha verification logic in contact API route. --- frontend/app/api/contact/route.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/app/api/contact/route.ts b/frontend/app/api/contact/route.ts index 61a2d60..598b515 100644 --- a/frontend/app/api/contact/route.ts +++ b/frontend/app/api/contact/route.ts @@ -12,14 +12,14 @@ export async function POST(req: NextRequest) { try { const body = await req.json() const origin = req.headers.get('origin') || 'http://localhost:3000' - const captchaToken = body.captcha - - if (!captchaToken) { - return NextResponse.json( - {success: false, error: 'Captcha is required'}, - {status: 400} - ) - } + // const captchaToken = body.captcha + // + // if (!captchaToken) { + // return NextResponse.json( + // {success: false, error: 'Captcha is required'}, + // {status: 400} + // ) + // } // Step 1: Verify hCaptcha token // const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', {