diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-13 15:27:33 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-13 15:27:33 -0400 |
| commit | 97930ca47f2982fa9afd032562a82e607d19e729 (patch) | |
| tree | 5d1f484706df91309128728dc1182f128cd5991f /www/js | |
| parent | ea2c76bd5beba6da0d1dbd5db4d2ecc4cc4a6726 (diff) | |
#704 some more var cleanup
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/LoginCtrl.js | 3 | ||||
| -rw-r--r-- | www/js/MenuController.js | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index 923e1baa..782bcd72 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -461,6 +461,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r $rootScope.alarmCount = 0; $rootScope.isAlarm = false; + $rootScope.newBlogPost = ''; NVRDataModel.setFirstUse(false); NVRDataModel.setCurrentServerVersion(''); @@ -577,6 +578,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r NVRDataModel.setLogin($scope.loginData); + $rootScope.authSession = ''; + if ($rootScope.platformOS != 'desktop') { if ($scope.loginData.saveToCloud) { 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 = ''; |
