1
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:
Adhityaa
2018-06-05 14:23:32 +05:30
parent 98422b2dae
commit ee65be7bac
4 changed files with 21 additions and 1 deletions

8
frontend/js/logout.js Normal file
View File

@ -0,0 +1,8 @@
(function (global, document) {
global.logout = function() {
global.cookieSet("session", "");
document.location = "/login";
}
} (window, document));