From 37a2f7013daa3ad90ca324035a4ec6c4060554d8 Mon Sep 17 00:00:00 2001 From: Karmaa <88517757+LukeGus@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:58:25 -0500 Subject: [PATCH] Update src/backend/database/routes/users.ts Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/backend/database/routes/users.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/database/routes/users.ts b/src/backend/database/routes/users.ts index e032555e..066ab315 100644 --- a/src/backend/database/routes/users.ts +++ b/src/backend/database/routes/users.ts @@ -858,10 +858,11 @@ router.post("/login", async (req, res) => { .json({ error: "Password authentication is currently disabled" }); } } catch (e) { - authLogger.warn("Failed to check password login status", { + authLogger.error("Failed to check password login status", { operation: "login_check", error: e, }); + return res.status(500).json({ error: "Failed to check login status" }); } try {