修改问题

This commit is contained in:
zpc 2024-07-10 17:37:02 +08:00
parent 0107308fec
commit f5d9c53c2c

View File

@ -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);