From 87f9e1b00b33a06bdde2a63a59da5deb52701be4 Mon Sep 17 00:00:00 2001 From: cKey <35512826+colinin@users.noreply.github.com> Date: Mon, 28 Feb 2022 14:55:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(ids-wechat):=20=E4=BD=BF=E7=94=A8=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=AF=E7=94=A8=E9=A1=B9=E8=A6=86=E7=9B=96=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=A1=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WeChat/MiniProgram/WeChatMiniProgramProfileService.cs | 6 ++++++ .../appsettings.Development.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs index 180241c15..baedda606 100644 --- a/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs +++ b/aspnet-core/modules/identityServer/LINGYUN.Abp.IdentityServer.WeChat/LINGYUN/Abp/IdentityServer/WeChat/MiniProgram/WeChatMiniProgramProfileService.cs @@ -46,6 +46,12 @@ namespace LINGYUN.Abp.IdentityServer.WeChat.MiniProgram } } + [UnitOfWork] + public override Task IsUserActiveAsync(IdentityUser user) + { + return Task.FromResult(user.IsActive); + } + protected virtual void TryAddWeChatClaim(ProfileDataRequestContext context, string weChatClaimType) { if (context.RequestedClaimTypes.Any(rc => rc.Contains(weChatClaimType))) diff --git a/aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json b/aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json index 50f6a344c..18e9079d0 100644 --- a/aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json +++ b/aspnet-core/services/LY.MicroService.identityServer/appsettings.Development.json @@ -1,5 +1,5 @@ { - "AgileConfig1": { + "AgileConfig": { "env": "DEV", "appId": "LINGYUN.Abp.AuthServer", "secret": "1q2w3E*",