user administration
This commit is contained in:
@@ -24,7 +24,9 @@ public class TokenService
|
||||
{
|
||||
new Claim(ClaimTypes.NameIdentifier, user.Id.ToString()),
|
||||
new Claim(ClaimTypes.Name, user.Username),
|
||||
new Claim(ClaimTypes.Email, user.Email)
|
||||
new Claim(ClaimTypes.Email, user.Email),
|
||||
new Claim("isAdmin", user.IsAdmin.ToString().ToLower()),
|
||||
new Claim("mustChangePassword", user.MustChangePassword.ToString().ToLower())
|
||||
};
|
||||
|
||||
var token = new JwtSecurityToken(
|
||||
|
||||
Reference in New Issue
Block a user