Call /admin/bye on logout

This commit is contained in:
NewbieOrange committed 2021-07-30 01:08:18 +08:00
1 parent 745f2de25f
commit eddd1050c4
3 files changed
+3 -2

No files matched your search

+1
View File
@@ -372,6 +372,7 @@ function do_logout() {
localStorage.removeItem("miab-cp-credentials");
if (typeof sessionStorage != 'undefined')
sessionStorage.removeItem("miab-cp-credentials");
api("/bye", "GET"); // Invalidate and remove control panel token.
show_panel('login');
}