mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 04:42:54 -05:00
Update logout redirection logic with key parameter on logoutonidlesessiontimeout (#7379)
This commit is contained in:
@@ -1541,7 +1541,8 @@
|
||||
files = null;
|
||||
}
|
||||
if (serverinfo.logoutonidlesessiontimeout) {
|
||||
window.location.href = 'logout';
|
||||
if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
|
||||
else { window.location.href = 'logout'; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2453,7 +2453,8 @@
|
||||
files = null;
|
||||
}
|
||||
if (serverinfo.logoutonidlesessiontimeout) {
|
||||
window.location.href = 'logout';
|
||||
if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
|
||||
else { window.location.href = 'logout'; }
|
||||
}
|
||||
} else {
|
||||
var ds = Math.round((serverinfo.timeout - delta) / 1000);
|
||||
|
||||
@@ -3087,7 +3087,8 @@
|
||||
files = null;
|
||||
}
|
||||
if (serverinfo.logoutonidlesessiontimeout) {
|
||||
window.location.href = 'logout';
|
||||
if (urlargs.key) { window.location.href = 'logout?key=' + urlargs.key; }
|
||||
else { window.location.href = 'logout'; }
|
||||
}
|
||||
} else {
|
||||
var ds = Math.round((serverinfo.timeout - delta) / 1000);
|
||||
|
||||
Reference in New Issue
Block a user