From 37afc12b658571b73dd10d87b477532cb9c1261a Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 17 May 2025 13:13:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(gdpr):=20=E5=88=A0=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=B4=A6=E6=88=B7=E4=BF=9D=E7=95=99admin=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Abp/Gdpr/Identity/AbpGdprIdentityUserAccountProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/modules/gdpr/LINGYUN.Abp.Gdpr.Domain.Identity/LINGYUN/Abp/Gdpr/Identity/AbpGdprIdentityUserAccountProvider.cs b/aspnet-core/modules/gdpr/LINGYUN.Abp.Gdpr.Domain.Identity/LINGYUN/Abp/Gdpr/Identity/AbpGdprIdentityUserAccountProvider.cs index 55f586f3e..dfb8e28fa 100644 --- a/aspnet-core/modules/gdpr/LINGYUN.Abp.Gdpr.Domain.Identity/LINGYUN/Abp/Gdpr/Identity/AbpGdprIdentityUserAccountProvider.cs +++ b/aspnet-core/modules/gdpr/LINGYUN.Abp.Gdpr.Domain.Identity/LINGYUN/Abp/Gdpr/Identity/AbpGdprIdentityUserAccountProvider.cs @@ -22,7 +22,7 @@ public class AbpGdprIdentityUserAccountProvider : GdprUserAccountProviderBase // 默认管理员账号保留 // TODO: 保留统一维护的地方? - if (identityUser.UserName == "admin") + if (identityUser.UserName != "admin") { (await identityUserManager.DeleteAsync(identityUser)).CheckErrors(); }