Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/login/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function LoginPage() {

if (isLogin) {
// Verify captcha first via API route
const verifyRes = await fetch('/auth', {
const verifyRes = await fetch('/api/auth', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password, captchaToken, action: 'login' }),
Expand All @@ -59,7 +59,7 @@ export default function LoginPage() {
router.push('/dashboard')
} else {
// Signup flow remains the same
const res = await fetch('/auth', {
const res = await fetch('/api/auth', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password, captchaToken, action: 'signup' }),
Expand Down
Loading