From f5d9c53c2c59a07e73c5a6bf61523c29d1323a98 Mon Sep 17 00:00:00 2001 From: zpc Date: Wed, 10 Jul 2024 17:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/0-core/HuanMeng.MiaoYu.Code/Users/UserBLL.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/0-core/HuanMeng.MiaoYu.Code/Users/UserBLL.cs b/src/0-core/HuanMeng.MiaoYu.Code/Users/UserBLL.cs index 86e5662..44de43f 100644 --- a/src/0-core/HuanMeng.MiaoYu.Code/Users/UserBLL.cs +++ b/src/0-core/HuanMeng.MiaoYu.Code/Users/UserBLL.cs @@ -81,8 +81,8 @@ namespace HuanMeng.MiaoYu.Code.Users { var claims = new[] { - new Claim(ClaimTypes.Name,accountInfo.NickName), - new Claim("Name",accountInfo.NickName), + //new Claim(ClaimTypes.Name,accountInfo.NickName), + new Claim("NickName",accountInfo.NickName), new Claim("UserId",accountInfo.UserId.ToString()), }; var jwtAuthResulttre = JwtAuthManager.GenerateTokens(accountInfo.NickName, claims, DateTime.Now);