mirror of https://github.com/apache/cloudstack.git
Fix session expire handling
If session has expired, hide entire UI (except for dialog) to prevent clicking/seeing expired UI elements.
This commit is contained in:
parent
d08adef264
commit
c661289941
|
|
@ -845,10 +845,13 @@ var addGuestNetworkDialog = {
|
|||
var property;
|
||||
for (property in json) {
|
||||
var errorObj = json[property];
|
||||
if (errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature")
|
||||
if (errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature") {
|
||||
$('#container').hide();
|
||||
|
||||
return _l('label.session.expired');
|
||||
else
|
||||
} else {
|
||||
return _s(errorObj.errortext);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue