From af2b59902e50264a9a34f4ca0a5bdf06ecc13b8d Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 8 Jan 2018 10:43:25 -0500 Subject: #499 - fix case when you try and configure ES before logging into portal (first setup) --- www/js/PortalLoginCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/js/PortalLoginCtrl.js') diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index e1cf5343..a7d25f84 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -27,7 +27,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic $scope.pinPrompt = false; // if true, then PIN is displayed else skip - if (NVRDataModel.isLoggedIn()) + if (NVRDataModel.hasLoginInfo()) { NVRDataModel.log("User credentials are provided"); -- cgit v1.2.3