summaryrefslogtreecommitdiff
path: root/www/js/WizardCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-10-22 11:50:53 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-10-22 11:50:53 -0400
commitff613f8e6210d2c4cd2f8deacc0096e18aff2fcd (patch)
treedee024287af53b9c9189b6acd1b783fa0ef1a527 /www/js/WizardCtrl.js
parente3ee3eeeb220cfce88ddfdb2189ec6e49432565f (diff)
#725 move push handlers inside beforeEnter for better consistency
Diffstat (limited to 'www/js/WizardCtrl.js')
-rw-r--r--www/js/WizardCtrl.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js
index f4b3d456..fb76c64c 100644
--- a/www/js/WizardCtrl.js
+++ b/www/js/WizardCtrl.js
@@ -343,6 +343,20 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$
function logout(u) {
var d = $q.defer();
+ if (window.cordova) {
+ // we need to do this or ZM will send same auth hash
+ // this was fixed in a PR dated Oct 18
+ NVRDataModel.debug ("Clearing cookies");
+ cordova.plugin.http.clearCookies();
+
+ if ($scope.wizard.useauth && $scope.wizard.usebasicauth) {
+ NVRDataModel.debug ("setting basic auth");
+ cordova.plugin.http.useBasicAuth($scope.wizard.basicuser, $scope.wizard.basicpassword);
+
+ }
+ }
+
+
$http({
method: 'POST',
url: u,