|
|
|
|
@ -421,15 +421,15 @@ namespace ATS.NonCustodial.Application.Impl.Admins
|
|
|
|
|
{ |
|
|
|
|
new Claim(ClaimAttributes.userId, user.Id.ToString()), |
|
|
|
|
new Claim(ClaimAttributes.userName, user.UserName!), |
|
|
|
|
new Claim(ClaimAttributes.userUnitId, user.UnitId.ToString()), |
|
|
|
|
new Claim(ClaimAttributes.userDeptcodeId, user.DeptcodeId.ToString()), |
|
|
|
|
new Claim(ClaimAttributes.userUnitId, user.UnitId?.ToString() ?? ""), |
|
|
|
|
new Claim(ClaimAttributes.userDeptcodeId, user.DeptcodeId?.ToString()??""), |
|
|
|
|
new Claim(ClaimAttributes.userNickName, user?.NickName??"") , |
|
|
|
|
new Claim(ClaimAttributes.avatar,user?.Avatar??"") , |
|
|
|
|
new Claim(ClaimAttributes.roles,JsonConvert.SerializeObject(roles)), |
|
|
|
|
new Claim(ClaimAttributes.orgs,JsonConvert.SerializeObject(Array.Empty<long>())) , |
|
|
|
|
new Claim(ClaimAttributes.phone,user?.Phone??""), |
|
|
|
|
new Claim(ClaimAttributes.logtime,timeLogin), |
|
|
|
|
new Claim(ClaimAttributes.limits,limits), |
|
|
|
|
new Claim(ClaimAttributes.limits,limits??""), |
|
|
|
|
new Claim(ClaimAttributes.IsAdmin,user.IsAdmin?"true":"false"), |
|
|
|
|
new Claim(ClaimAttributes.personType,user?.ChatPersonType.ToString()!) |
|
|
|
|
}); |
|
|
|
|
|