diff options
| author | = <=> | 2019-03-14 16:08:50 -0400 |
|---|---|---|
| committer | = <=> | 2019-03-14 16:08:50 -0400 |
| commit | 47e09df6ee77e732e575e0d8f9051de055d21e2c (patch) | |
| tree | a70b80f21443dbb5de4fd8d94e559d84133bdfd7 /www/js/app.js | |
| parent | 465a3f89ac7f61aa63ac9a732aee66352eeeb198 (diff) | |
#784 don't go to lock if no pin
Diffstat (limited to 'www/js/app.js')
| -rwxr-xr-x | www/js/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js index 71a51c00..9a93b0cf 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1647,7 +1647,11 @@ angular.module('zmApp', [ if (evt.metaKey || evt.ctrlKey) { if (evt.keyCode == 76) { evt.preventDefault(); - NVR.log ("****** Lock pressed ******"); + NVR.log ("---> Lock pressed"); + if (!NVR.getLogin().usePin) { + NVR.log ("not using pin, ignoring"); + return; + } $ionicHistory.nextViewOptions({ disableAnimate: true }); |
