logout.js: delete cookie instead of empty write

Closes https://gitlab.com/commento/commento-ce/issues/73
This commit is contained in:
Adhityaa Chandrasekar 2018-08-12 22:33:40 +05:30
parent 99177a59c3
commit 89a81ece19

View File

@ -1,7 +1,7 @@
(function (global, document) {
global.logout = function() {
global.cookieSet("commentoOwnerToken", "");
global.cookieDelete("commentoOwnerToken");
document.location = global.commentoOrigin + "/login";
}