|
|
@@ -409,14 +409,8 @@ else:
|
|
|
var isLoginRequired = false;
|
|
|
$(document).ajaxComplete(function (event, xhr, settings) {
|
|
|
if (xhr.responseText === '/* login required */') {
|
|
|
- if (window.SAML_LOGOUT_URL) {
|
|
|
- var logoutForm = $('<form action="' + window.SAML_LOGOUT_URL + '" method="POST"></form>');
|
|
|
-
|
|
|
- if (window.SAML_REDIRECT_URL) {
|
|
|
- var logoutRedirect = $('<input name="logoutRedirect" type="hidden" value="' + window.SAML_REDIRECT_URL + '" />');
|
|
|
- logoutRedirect.appendTo(logoutForm);
|
|
|
- }
|
|
|
- logoutForm.appendTo('body').submit();
|
|
|
+ if (window.SAML_LOGOUT_URL && window.SAML_REDIRECT_URL) {
|
|
|
+ setTimeout(function () { window.location.href = "/accounts/logout" }, 2000);
|
|
|
}
|
|
|
|
|
|
var isAutoLogout = settings.url == '/desktop/debug/is_idle';
|