go-urlsh/web/misc.js

4 lines
No EOL
148 B
JavaScript

function Logout() {
document.cookie = 'gourlsh_auth=; Max-Age=-1; path=/; domain=' + location.hostname;
document.location = "/admin/login"
}