Browse Source

Merge pull request #906 from zhangzw218/hotfix/2023111301_zzw_esauth

Elasticsearch.Net.ElasticsearchClientException
pull/908/head 7.2.1
yx lin 2 years ago
committed by GitHub
parent
commit
4e87de2133
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs

2
aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs

@ -57,7 +57,7 @@ namespace LINGYUN.Abp.Elasticsearch
configuration.DefaultFieldNameInferrer((name) => name);
}
if (UserName.IsNullOrWhiteSpace())
if (!UserName.IsNullOrWhiteSpace())
{
configuration.BasicAuthentication(UserName, Password);
}

Loading…
Cancel
Save