1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-03 20:19:15 +00:00

Merge pull request #6439 from mailcow/fix/6430

[SOGo] Use JS for mailcow logout
This commit is contained in:
FreddleSpl0it
2025-04-03 12:57:24 +02:00
committed by GitHub
3 changed files with 14 additions and 9 deletions

View File

@@ -5,6 +5,16 @@ document.addEventListener('DOMContentLoaded', function () {
window.location.href = '/user';
}
});
// logout function
function mc_logout() {
fetch("/", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: "logout=1"
}).then(() => window.location.href = '/');
}
// Custom SOGo JS