summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rwxr-xr-xwww/js/app.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 09e4d444..889455e2 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1049,6 +1049,17 @@ angular.module('zmApp', [
var ld = NVRDataModel.getLogin();
NVRDataModel.log("zmAutologin called");
+
+ // This is a good time to check if auth is used :-p
+ if (!ld.isUseAuth)
+ {
+ NVRDataModel.log ("Auth is disabled!");
+ d.resolve("Login Success");
+
+ $rootScope.$emit('auth-success', 'no auth');
+
+ }
+
if (str)
{
$ionicLoading.show(