From 97930ca47f2982fa9afd032562a82e607d19e729 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 13 Sep 2018 15:27:33 -0400 Subject: #704 some more var cleanup --- www/js/MenuController.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'www/js/MenuController.js') diff --git a/www/js/MenuController.js b/www/js/MenuController.js index abe2e80c..995abba3 100644 --- a/www/js/MenuController.js +++ b/www/js/MenuController.js @@ -49,6 +49,8 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io $rootScope.alarmCount = 0; $rootScope.isAlarm = false; + $rootScope.authSession = ''; + @@ -69,6 +71,8 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io NVRDataModel.debug("Retrieved state for this profile:" + JSON.stringify(loginData)); NVRDataModel.setLogin(loginData); + + if (!loginData.isUseBasicAuth) { $rootScope.basicAuthHeader = ''; $rootScope.basicAuthToken = ''; -- cgit v1.2.3