diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-21 10:12:49 -0700 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-21 10:12:49 -0700 |
| commit | 9b5815a31348a6dc420bb05f92e0be8bd5346cca (patch) | |
| tree | 6c230b628b36d4a7dd653d4d480e38931b975b2f | |
| parent | 5096224fe6d718ceaed8770e02acefd8847db48c (diff) | |
#634 - empty authSession on no auth
| -rwxr-xr-x | www/js/DataModel.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 2e580124..f2d7dd4f 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -339,6 +339,12 @@ angular.module('zmApp.controllers') var d = $q.defer(); var myurl; + if (!loginData.isUseAuth) { + $rootScope.authSession = ""; + d.resolve($rootScope.authSession); + return d.promise; + } + // disable for now, getAuthHash needs work if (versionCompare(currentServerVersion, "1.31.44") != -1) { |
