novi vnos, izbris vnosov, itd.
This commit is contained in:
@@ -45,6 +45,8 @@ function updateToggleState(theme) {
|
||||
function logout() {
|
||||
// Odstrani cookie tako, da ga nastaviš z max-age=0
|
||||
document.cookie = 'token=; max-age=0; path=/; secure; samesite=strict';
|
||||
document.cookie = 'username=; max-age=0; path=/; secure; samesite=strict';
|
||||
window.location.href = "/";
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
|
||||
Reference in New Issue
Block a user