Update src/backend/database/routes/users.ts
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -858,10 +858,11 @@ router.post("/login", async (req, res) => {
|
|||||||
.json({ error: "Password authentication is currently disabled" });
|
.json({ error: "Password authentication is currently disabled" });
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
authLogger.warn("Failed to check password login status", {
|
authLogger.error("Failed to check password login status", {
|
||||||
operation: "login_check",
|
operation: "login_check",
|
||||||
error: e,
|
error: e,
|
||||||
});
|
});
|
||||||
|
return res.status(500).json({ error: "Failed to check login status" });
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user