From a6744a818e749ead1e66d66b96bbfe29763e7a75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=BF=97=E7=82=9C?= <745787360@qq.com> Date: Mon, 13 Nov 2023 18:04:23 +0800 Subject: [PATCH] =?UTF-8?q?es=E5=B8=A6=E5=AF=86=E7=A0=81=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= 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/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs b/aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs index 1af0f1a63..4f49f1a33 100644 --- a/aspnet-core/modules/elasticsearch/LINGYUN.Abp.Elasticsearch/LINGYUN/Abp/Elasticsearch/AbpElasticsearchOptions.cs +++ b/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); }