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 {
|
try {
|
||||||
const body = await req.json()
|
const body = await req.json()
|
||||||
const origin = req.headers.get('origin') || 'http://localhost:3000'
|
const origin = req.headers.get('origin') || 'http://localhost:3000'
|
||||||
const captchaToken = body.captcha
|
// const captchaToken = body.captcha
|
||||||
|
//
|
||||||
if (!captchaToken) {
|
// if (!captchaToken) {
|
||||||
return NextResponse.json(
|
// return NextResponse.json(
|
||||||
{success: false, error: 'Captcha is required'},
|
// {success: false, error: 'Captcha is required'},
|
||||||
{status: 400}
|
// {status: 400}
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Step 1: Verify hCaptcha token
|
// Step 1: Verify hCaptcha token
|
||||||
// const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', {
|
// const verifyResponse = await fetch('https://api.hcaptcha.com/siteverify', {
|
||||||
|
|||||||
Reference in New Issue
Block a user