Merge pull request #40 from Qtoss-AI/jason_dev

fix affiliate claim name
This commit is contained in:
Haiping 2024-11-08 13:05:20 +00:00 committed by GitHub
commit def418df1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -317,8 +317,8 @@ public class UserService : IUserService
new Claim("role", user.Role ?? UserRole.User),
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()),
new Claim("phone", user.Phone ?? string.Empty),
new Claim("affiliateId", user.AffiliateId ?? string.Empty),
new Claim("employeeId", user.EmployeeId ?? string.Empty),
new Claim("affiliate_id", user.AffiliateId ?? string.Empty),
new Claim("employee_id", user.EmployeeId ?? string.Empty),
new Claim("regionCode", user.RegionCode ?? "CN")
};