test
This commit is contained in:
2
scripts/login.js
Normal file → Executable file
2
scripts/login.js
Normal file → Executable file
@@ -31,7 +31,7 @@ document.getElementById("login-form").addEventListener("submit", async function(
|
||||
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 = "/";
|
||||
window.location.href = "index.html";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user