From 4acd9d02450c56830ab2449a9f0f8b7826d3be4c Mon Sep 17 00:00:00 2001 From: Ali Date: Tue, 24 Feb 2026 21:18:59 +0900 Subject: [PATCH] auth --- public/login.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/login.js b/public/login.js index 0ca5bda..aa3eb2f 100644 --- a/public/login.js +++ b/public/login.js @@ -35,6 +35,7 @@ form.addEventListener("submit", async (event) => { window.location.href = "dashboard.html" } catch (err) { - errorMessage.textContent = "Server nicht erreichbar" + console.error("Login error:", err) + res.status(503).json({ message: "Server error during login" }) } }) \ No newline at end of file