From 5a81200bd99bd176a303d5ee05359d304fa499b8 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 11 Aug 2019 17:12:52 -0400 Subject: #842 - my code is a huge ness. --- www/js/PortalLoginCtrl.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'www/js/PortalLoginCtrl.js') diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 17715238..192c0c4e 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -470,12 +470,19 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic }, function error(e) { + $ionicHistory.nextViewOptions({ + disableAnimate:true, + disableBack: true + }); + if ($rootScope.apiValid == true) { $state.go("app.login", { "wizard": false }); return; } else { + NVR.log ('Portal login:invalid api'); + if (!$rootScope.userCancelledAuth) $state.go("app.invalidapi"); return; } -- cgit v1.2.3