novi vnos, izbris vnosov, itd.

This commit is contained in:
2026-05-08 17:51:25 +02:00
parent 6c694a73fb
commit e60826b8d9
10 changed files with 307 additions and 2 deletions

View File

@@ -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;