diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-26 19:54:08 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-09-26 19:54:08 -0400 |
| commit | 67900b322cf9088a4c06afe8b7e1053a6d3bb405 (patch) | |
| tree | fa51b5ba246da339003373e2345980048bf1f6f8 /www/js/PortalLoginCtrl.js | |
| parent | 86ea6c8b4b005b59658a29828e007913203273bd (diff) | |
make sure touchID is not checked if usePin is off
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 853a9593..8b859a95 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -25,11 +25,11 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic $scope.pinPrompt = false; // if true, then PIN is displayed else skip - if (ZMDataModel.isLoggedIn()) { + if (ZMDataModel.isLoggedIn() ) { ZMDataModel.zmLog("User credentials are provided"); // You can login either via touch ID or typing in your code - if ( $ionicPlatform.is('ios')) + if ( $ionicPlatform.is('ios') && loginData.usePin) { $cordovaTouchID.checkSupport() .then(function () { |
