Apache Lucene open-source search software
SOLR-14237: Fix an error on admin UI due to improper variable handling
Ishan Chattopadhyaya679cebec7b72
diff --git a/solr/webapp/web/js/angular/controllers/index.js b/solr/webapp/web/js/angular/controllers/index.jsindex f8b074721ce..e931d59e1eb 100644--- a/solr/webapp/web/js/angular/controllers/index.js+++ b/solr/webapp/web/js/angular/controllers/index.js@@ -21,7 +21,7 @@ solrAdminApp.controller('IndexController', function($scope, System, Cores, ConstSystem.get(function(data) {$scope.system = data;- if (username in data.security) {+ if ("username" in data.security) {// Needed for Kerberos, since this is the only place from where// Kerberos username can be obtained.sessionStorage.setItem("auth.username", data.security.username);