From c661289941aa9ab34c0348dfd510b999865c42d8 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Wed, 17 Sep 2014 13:31:39 -0700 Subject: [PATCH] Fix session expire handling If session has expired, hide entire UI (except for dialog) to prevent clicking/seeing expired UI elements. --- ui/scripts/sharedFunctions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js index 41f5d3aa2c6..8fc0b724089 100644 --- a/ui/scripts/sharedFunctions.js +++ b/ui/scripts/sharedFunctions.js @@ -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 "";