From eee1a8a424220d9e108243a1f0aedd4a722b00af Mon Sep 17 00:00:00 2001 From: wangjun Date: Mon, 31 Jul 2023 22:50:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9jwt=20claim=20role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Users/AccountAppService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs index 3ffe2f59..0176edf6 100644 --- a/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs +++ b/aspnet-core/modules/BasicManagement/src/Lion.AbpPro.BasicManagement.Application/Users/AccountAppService.cs @@ -83,7 +83,7 @@ namespace Lion.AbpPro.BasicManagement.Users foreach (var item in roles) { - claims.Add(new Claim(JwtClaimTypes.Role, item)); + claims.Add(new Claim(AbpClaimTypes.Role, item)); } var tokenDescriptor = new SecurityTokenDescriptor()