summaryrefslogtreecommitdiff
path: root/www/js/LoginCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-30 10:55:59 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-30 10:55:59 -0400
commitf286615882223adf7bc309c75a142286b5044cc1 (patch)
tree5fa006dcdcde6a223543d5cad4102993741b00a0 /www/js/LoginCtrl.js
parentdee2ad4192126f82a7afbe1974b4470b0d0218af (diff)
#618 add token for basic auth as "fyi" for all images
Diffstat (limited to 'www/js/LoginCtrl.js')
-rw-r--r--www/js/LoginCtrl.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index a2fd1ff1..9a21f654 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -553,10 +553,12 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
if (!$scope.loginData.isUseBasicAuth) {
$rootScope.basicAuthHeader = '';
+ $rootScope.basicAuthToken = '';
// console.log ("CLEARING AUTH");
}
else {
- $rootScope.basicAuthHeader = 'Basic ' + btoa($scope.loginData.basicAuthUser+':'+$scope.loginData.basicAuthPassword);
+ $rootScope.basicAuthToken = btoa($scope.loginData.basicAuthUser+':'+$scope.loginData.basicAuthPassword);
+ $rootScope.basicAuthHeader = 'Basic ' + $rootScope.basicAuthToken ;
}