mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
frontend: add logout
This commit is contained in:
8
frontend/js/logout.js
Normal file
8
frontend/js/logout.js
Normal file
@ -0,0 +1,8 @@
|
||||
(function (global, document) {
|
||||
|
||||
global.logout = function() {
|
||||
global.cookieSet("session", "");
|
||||
document.location = "/login";
|
||||
}
|
||||
|
||||
} (window, document));
|
Reference in New Issue
Block a user