From c83b07e46269878b9f34ce6e43f03977dd085ca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Urban?= Date: Sun, 28 Jul 2024 18:38:35 +0200 Subject: [PATCH] fix: update login way to set auth --- frontend/src/Login.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Login.svelte b/frontend/src/Login.svelte index 023b928..38a3d2b 100644 --- a/frontend/src/Login.svelte +++ b/frontend/src/Login.svelte @@ -26,7 +26,7 @@ if (response.ok) { message = "Login successful!"; - $isAuthenticated = true; + isAuthenticated.setAuth(true); if (data.redirect) { const authResponse = await fetch('/api/authenticate', { method: 'GET',