diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2019-08-11 17:12:52 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2019-08-11 17:12:52 -0400 |
| commit | 5a81200bd99bd176a303d5ee05359d304fa499b8 (patch) | |
| tree | ddca239b523614b1174340599e6769dd2addbcd6 /www/js/PortalLoginCtrl.js | |
| parent | b36c596f4350ba7e8772044c6601ca5404de1dde (diff) | |
#842 - my code is a huge ness.
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |
