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:
Brian Federle 2014-09-17 13:31:39 -07:00
parent d08adef264
commit c661289941
1 changed files with 5 additions and 2 deletions

View File

@ -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 "";