diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-11-05 19:29:59 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-11-05 19:29:59 -0500 |
| commit | 24677360c6364221e6701908734ad15f44e7a26e (patch) | |
| tree | 7cef67af5b8846b6f9f9094086e02479adec18d3 /www/js/PortalLoginCtrl.js | |
| parent | 6a55a1031809d84a2b0133a7246d131887461239 (diff) | |
#555 - make sure fingerprint auth is not called if auto montage reload
Diffstat (limited to 'www/js/PortalLoginCtrl.js')
| -rw-r--r-- | www/js/PortalLoginCtrl.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 6970fc9e..a71aa83e 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -33,8 +33,18 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic // You can login either via touch ID or typing in your code + var ld = NVRDataModel.getLogin(); - if ($ionicPlatform.is('android') && loginData.usePin) { + if (ld.reloadInMontage == true) { + // we are in montage reload, so don't re-auth + NVRDataModel.log ("skipping validation, as this is montage reload"); + ld.reloadInMontage = false; + NVRDataModel.setLogin(ld); + unlock(true); + + } + + else if ($ionicPlatform.is('android') && loginData.usePin) { FingerprintAuth.isAvailable(function (result) { console.log("FingerprintAuth available: " + JSON.stringify(result)); |
