From 9b5815a31348a6dc420bb05f92e0be8bd5346cca Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 21 May 2018 10:12:49 -0700 Subject: #634 - empty authSession on no auth --- www/js/DataModel.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'www/js/DataModel.js') 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) { -- cgit v1.2.3