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(); }