fix logins page redirect

This commit is contained in:
KingKDot
2026-04-13 20:26:03 -05:00
parent 41f8f087ce
commit 30e5d4d67b
12 changed files with 25 additions and 23 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ async function checkAuth() {
try {
const res = await fetch("/api/auth/me");
if (!res.ok) {
window.location.href = "/login.html";
window.location.href = "/";
return;
}
@@ -123,7 +123,7 @@ async function checkAuth() {
}
} catch (err) {
console.error("Auth check failed:", err);
window.location.href = "/login.html";
window.location.href = "/";
}
}