summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-05-21 10:12:49 -0700
committerPliable Pixels <pliablepixels@gmail.com>2018-05-21 10:12:49 -0700
commit9b5815a31348a6dc420bb05f92e0be8bd5346cca (patch)
tree6c230b628b36d4a7dd653d4d480e38931b975b2f /www/js
parent5096224fe6d718ceaed8770e02acefd8847db48c (diff)
#634 - empty authSession on no auth
Diffstat (limited to 'www/js')
-rwxr-xr-xwww/js/DataModel.js6
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) {