auth fix, file search & drag drop

This commit is contained in:
Ryan
2025-03-08 06:32:31 -05:00
committed by GitHub
parent 9a606ab59f
commit ce0d888f86
5 changed files with 303 additions and 133 deletions

View File

@@ -21,9 +21,8 @@ export function initAuth() {
.then(data => {
console.log("Login response:", data);
if (data.success) {
console.log("✅ Login successful.");
updateUIOnLogin(data.isAdmin);
checkAuthentication(); // Double-check session persistence.
console.log("✅ Login successful. Reloading page.");
window.location.reload();
} else {
alert("Login failed: " + (data.error || "Unknown error"));
}