summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/WizardCtrl.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js
index d60e3c76..688fa18c 100644
--- a/www/js/WizardCtrl.js
+++ b/www/js/WizardCtrl.js
@@ -348,6 +348,12 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$
// this was fixed in a PR dated Oct 18
cordova.plugin.http.clearCookies();
+ if ($scope.wizard.useauth && $scope.wizard.usebasicauth) {
+ NVR.debug ("setting basic auth with "+$scope.wizard.basicuser+":"+$scope.wizard.basicpassword);
+ cordova.plugin.http.useBasicAuth($scope.wizard.basicuser, $scope.wizard.basicpassword);
+
+ }
+
}
else {
angular.forEach($cookies, function (v, k) {
@@ -355,12 +361,7 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$
});
}
- if ($scope.wizard.useauth && $scope.wizard.usebasicauth) {
- NVR.debug ("setting basic auth with "+$scope.wizard.basicuser+":"+$scope.wizard.basicpassword);
- cordova.plugin.http.useBasicAuth($scope.wizard.basicuser, $scope.wizard.basicpassword);
-
- }
-
+
$http({