From e2dd9d9e6eb89611adff543f1ae6c5fb9dc46683 Mon Sep 17 00:00:00 2001 From: Reimar Date: Mon, 31 Mar 2025 11:00:11 +0200 Subject: [PATCH] Fix cookie path --- frontend/scripts/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/login.js b/frontend/scripts/login.js index 74a8f33..68e7048 100644 --- a/frontend/scripts/login.js +++ b/frontend/scripts/login.js @@ -10,7 +10,7 @@ document.getElementById("loginForm").addEventListener("submit", function(event) login(emailOrUsername, password) .then(response => { - document.cookie = `auth-token=${response.token}`; + document.cookie = `auth-token=${response.token}; Path=/`; localStorage.setItem("user", { id: response.id,