SOLR-14237: Fix an error on admin UI due to improper variable handling

This commit is contained in:
Ishan Chattopadhyaya 2020-05-28 16:55:00 +05:30
parent 84c5dfc277
commit 679cebec7b
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ solrAdminApp.controller('IndexController', function($scope, System, Cores, Const
System.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);