hostname ≠ ui-domain
We need a additional variable for the mailcow-ui-domain, if the domain used for the mailcow ui differs from the hostname. Otherwise our users will get the login promt, when they try to access the mobileconfig file.
Dieser Commit ist enthalten in:
Ursprung
361f75390c
Commit
c84381ab5f
1 geänderte Dateien mit 12 neuen und 9 gelöschten Zeilen
|
@ -21,6 +21,9 @@ if (window.location.href.indexOf('/client/') >= 0) {
|
||||||
if (getParameterByName('name')) {
|
if (getParameterByName('name')) {
|
||||||
setCookie("name", getParameterByName('name'));
|
setCookie("name", getParameterByName('name'));
|
||||||
}
|
}
|
||||||
|
if (getParameterByName('ui')) {
|
||||||
|
setCookie("ui", getParameterByName('ui'));
|
||||||
|
}
|
||||||
if (getParameterByName('port')) {
|
if (getParameterByName('port')) {
|
||||||
setCookie("port", getParameterByName('port'));
|
setCookie("port", getParameterByName('port'));
|
||||||
}
|
}
|
||||||
|
@ -71,12 +74,12 @@ if (window.location.href.indexOf('/client') >= 0) {
|
||||||
el.innerText = getCookie('host');
|
el.innerText = getCookie('host');
|
||||||
});
|
});
|
||||||
Array.prototype.forEach.call(document.getElementsByClassName('client_var_link'), function(el) {
|
Array.prototype.forEach.call(document.getElementsByClassName('client_var_link'), function(el) {
|
||||||
if (!getCookie('host')) {
|
if (!getCookie('ui')) {
|
||||||
el.href = '#';
|
el.href = '#';
|
||||||
} else if (getCookie('port') != '443') {
|
} else if (getCookie('port') != '443') {
|
||||||
el.href = 'https://' + getCookie('host') + ':' + getCookie('port') + '/' + el.getAttribute("href");
|
el.href = 'https://' + getCookie('ui') + ':' + getCookie('port') + '/' + el.getAttribute("href");
|
||||||
} else {
|
} else {
|
||||||
el.href = 'https://' + getCookie('host') + '/' + el.getAttribute("href");
|
el.href = 'https://' + getCookie('ui') + '/' + el.getAttribute("href");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Array.prototype.forEach.call(document.getElementsByClassName('client_var_email'), function(el) {
|
Array.prototype.forEach.call(document.getElementsByClassName('client_var_email'), function(el) {
|
||||||
|
|
Laden …
In neuem Issue referenzieren