reworked admin auth to use form and cookie + adjusted oauth to support API and cookie-based auth

This commit is contained in:
dswbx committed 2024-11-23 18:12:19 +01:00
1 parent f70e2b2e10
commit 824ff40133
30 files changed
+630 -483

No files matched your search

+2 -1
View File
@@ -150,7 +150,8 @@ function UserMenu() {
async function handleLogout() {
await auth.logout();
navigate("/auth/login", { replace: true });
// @todo: grab from somewhere constant
window.location.href = "/auth/logout";
}
async function handleLogin() {