novi vnos, izbris vnosov, itd.
This commit is contained in:
@@ -29,6 +29,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
|
||||
if (response.status === 200) {
|
||||
// Nastavi cookie, 3 ure veljaven
|
||||
document.cookie = `token=${data.token}; max-age=${3 * 60 * 60}; path=/; secure; samesite=strict`;
|
||||
document.cookie = `username=${username}; max-age=${3 * 60 * 60}; path=/; secure; samesite=strict`;
|
||||
|
||||
window.location.href = "/";
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user