Comment out hCaptcha verification logic in contact API route.
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user