From a7eb5ec2141c585c7d4eba7a49290d5cf1abe560 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 21 Feb 2019 11:07:33 -0500 Subject: basic auth was invoking cordova in desktop build --- www/js/WizardCtrl.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'www/js/WizardCtrl.js') 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({ -- cgit v1.2.3