fix: increase max login attempts and improve two-factor token error response

This commit is contained in:
shuaiplus
2026-02-20 18:53:10 +08:00
parent b6f2882cdf
commit a83e0d259e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -145,7 +145,7 @@ export async function handleToken(request: Request, env: Env): Promise<Response>
429
);
}
return twoFactorRequiredResponse();
return identityErrorResponse('Invalid two-factor token', 'invalid_grant', 400);
}
}