Browse Source

fix(elasticsearch): 修复用户密码验证错误

pull/909/head
colin 2 years ago
parent
commit
b66fce4706
  1. 2
      aspnet-core/framework/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs

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

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

Loading…
Cancel
Save