From b66fce4706dea30966cff15239dcf0e169aad5e9 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 29 Nov 2023 10:36:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(elasticsearch):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AF=86=E7=A0=81=E9=AA=8C=E8=AF=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/framework/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs b/aspnet-core/framework/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs index 573ceb1f9..9936bbb00 100644 --- a/aspnet-core/framework/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs +++ b/aspnet-core/framework/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); }