This commit is contained in:
@@ -35,7 +35,7 @@ form.addEventListener("submit", async (event) => {
|
|||||||
window.location.href = "dashboard.html"
|
window.location.href = "dashboard.html"
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("Login error:", err)
|
console.error("Login Error:", err); // Logge den ganzen Fehler
|
||||||
res.status(503).json({ message: "Server error during login" })
|
res.status(500).json({ message: "Server error during login" });
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user