mirror of https://github.com/apache/cloudstack.git
bug 14610: cloudstack 3.0 - single sign on - log out - not reload original location if onLogoutCallback() returns false because new location has been specified in onLogoutCallback().
This commit is contained in:
parent
ae0c3e0d26
commit
31997fa89d
|
|
@ -316,12 +316,15 @@
|
|||
$.cookie('timezoneoffset', null);
|
||||
$.cookie('timezone', null);
|
||||
$.cookie('supportELB', null);
|
||||
|
||||
onLogoutCallback(); //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
|
||||
document.location.reload();
|
||||
|
||||
if(onLogoutCallback()) { //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
|
||||
document.location.reload();
|
||||
}
|
||||
},
|
||||
error: function() {
|
||||
onLogoutCallback(); //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
|
||||
if(onLogoutCallback()) { //set g_loginResponse(single-sign-on variable) to null, then bypassLoginCheck() will show login screen.
|
||||
document.location.reload();
|
||||
}
|
||||
document.location.reload();
|
||||
},
|
||||
beforeSend : function(XMLHttpResponse) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue