diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-02-18 18:08:48 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-02-18 18:08:48 -0500 |
| commit | c50c77f5abc3b2977a3357ec21a9417ed97442fa (patch) | |
| tree | 2cf15c85008c48504c3918543b0a234c5ecddeaf | |
| parent | 6b83a8c3e248e1333559247264ccf916ed4a8448 (diff) | |
if auth is unchecked it won't do a bogus login #459 Hope this doesn't break other stuff
| -rwxr-xr-x | www/js/app.js | 11 |
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( |
