From f286615882223adf7bc309c75a142286b5044cc1 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 30 Apr 2018 10:55:59 -0400 Subject: #618 add token for basic auth as "fyi" for all images --- www/js/LoginCtrl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'www/js/LoginCtrl.js') 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 ; } -- cgit v1.2.3