...
This commit is contained in:
@@ -27,7 +27,10 @@ namespace Hushian.Application.Services
|
||||
{
|
||||
var claims = new[]
|
||||
{
|
||||
new Claim(JwtRegisteredClaimNames.Sub,userId.ToString()),
|
||||
new Claim(JwtRegisteredClaimNames.Sub,
|
||||
Role=="User" ? "U"+userId.ToString()
|
||||
:Role=="Company" ? "C"+userId.ToString()
|
||||
:userId.ToString()),
|
||||
new Claim(ClaimTypes.NameIdentifier, UserName),
|
||||
new Claim(CustomClaimTypes.Uid,userId.ToString()),
|
||||
new Claim(ClaimTypes.Role, Role)
|
||||
|
Reference in New Issue
Block a user