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,