summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-11 13:56:43 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-11 13:56:43 -0500
commit63f4c7e94db1243084f3d7cef023c7a1124f03b5 (patch)
treef550ac5ea5ae761d10412b9ecab68799706f2260 /www/js/LoginCtrl.js
parent1ab390f225b727303df305fefa72bb3ac4b069b8 (diff)
#81 - more cleanup towards localstorage object
Former-commit-id: 48e144877028a623972bbad62bd6e4f35104caca
Diffstat (limited to 'www/js/LoginCtrl.js')
-rw-r--r--www/js/LoginCtrl.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 17a6daf0..6c9234c4 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -239,6 +239,11 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
if (!$scope.loginData.password) $scope.loginData.password = "x";
ZMDataModel.zmLog("Authentication is disabled, setting dummy user & pass");
}
+
+ if (parseInt($scope.loginData.maxMontage) <=0)
+ {
+ $scope.loginData.maxMontage ="10";
+ }
ZMDataModel.setLogin($scope.loginData);