Secure admin login flow

This commit is contained in:
Codex
2026-04-28 09:16:15 +08:00
parent 21cb5c9c15
commit 98e32a4385
15 changed files with 646 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { NextResponse } from 'next/server'
import { createAdminCaptcha } from '@/lib/admin-captcha'
export const dynamic = 'force-dynamic'
export function GET() {
const captcha = createAdminCaptcha()
return NextResponse.json(captcha, {
headers: {
'Cache-Control': 'no-store, max-age=0',
},
})
}