1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-07 22:27:23 +02:00

Call /admin/bye on logout

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

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');
}