From 67900b322cf9088a4c06afe8b7e1053a6d3bb405 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sat, 26 Sep 2015 19:54:08 -0400 Subject: make sure touchID is not checked if usePin is off --- www/js/PortalLoginCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'www/js/PortalLoginCtrl.js') 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 () { -- cgit v1.2.3