diff --git a/dashboard-fresh/routes/api/auth/login.ts b/dashboard-fresh/routes/api/auth/login.ts index d2692a2..cd84a98 100644 --- a/dashboard-fresh/routes/api/auth/login.ts +++ b/dashboard-fresh/routes/api/auth/login.ts @@ -239,6 +239,8 @@ async function handleLogin(payload: LoginPayload): Promise { console.log('[login/handleLogin] Calling proxy to backend...') const loginBody: Record = { email, password } if (totpCode) { + // Try both field names for maximum compatibility + loginBody.totp = totpCode loginBody.totpCode = totpCode console.log('[login/handleLogin] → Including TOTP code in request:', totpCode) } else {