diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-09-15 14:41:54 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-09-15 14:41:54 -0400 |
| commit | 2a7699ac57249422b09951cecf8f93c641634990 (patch) | |
| tree | bf9a2baa7b9ce588a3c9cd2a96234df0cacbe55a /www/js/app.js | |
| parent | 606d3b95e941f48c8963d3996920472145da1200 (diff) | |
Fixed the colossal crap that was PIN code auth. Still need to clean up rough edges but overall looks good now
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/www/js/app.js b/www/js/app.js index 214e4f2d..045b4501 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -615,32 +615,18 @@ angular.module('zmApp', [ // from foreground to background and back document.addEventListener("resume", function () { ZMDataModel.zmLog("App is resuming from background"); + $state.go("zm-portal-login"); - $ionicSideMenuDelegate.toggleLeft(false); - ZMDataModel.validatePin() - .then ( function(data) - { - $rootScope.rand = Math.floor((Math.random() * 100000) + 1); - //$scope.rand = Math.floor((Math.random() * 100000) + 1); - console.log("** generated Random of " + $rootScope.rand); - zmAutoLogin.stop(); //safety - zmAutoLogin.start(); - zmAutoLogin.doLogin("authenticating ..."); - - }); - + //$ionicSideMenuDelegate.toggleLeft(false); + //ZMDataModel.validatePin() - - - - - }, false); document.addEventListener("pause", function () { console.log("****The application is going into background"); ZMDataModel.zmLog("App is going into background"); + zmAutoLogin.stop(); }, false); |
