1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-19 04:41:29 +00:00

[SOGo] redirect to /user if unauthenticated

This commit is contained in:
FreddleSpl0it
2024-12-01 16:51:56 +01:00
parent 45c13c687b
commit ccc8595665

View File

@@ -2,7 +2,7 @@
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
var loginForm = document.forms.namedItem("loginForm"); var loginForm = document.forms.namedItem("loginForm");
if (loginForm) { if (loginForm) {
window.location.href = '/'; window.location.href = '/user';
} }
angularReady = false; angularReady = false;
@@ -34,7 +34,7 @@ document.addEventListener('DOMContentLoaded', function () {
function mcElementsExists() { function mcElementsExists() {
if (document.getElementById("mc_backlink")) if (document.getElementById("mc_backlink"))
return true; return true;
else else
return false; return false;
} }
function addMCElements() { function addMCElements() {