fix logins page redirect
This commit is contained in:
@@ -146,7 +146,7 @@ function renderClients() {
|
||||
async function loadCurrentUser() {
|
||||
const res = await fetch("/api/auth/me", { credentials: "include" });
|
||||
if (!res.ok) {
|
||||
window.location.href = "/login.html";
|
||||
window.location.href = "/";
|
||||
return;
|
||||
}
|
||||
state.me = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user