Add the language to the user.
This commit is contained in:
@@ -118,7 +118,8 @@ namespace skydiveLogs_api.Controllers
|
||||
new Claim(ClaimTypes.Name, foundUser.Login),
|
||||
new Claim(ClaimTypes.UserData, foundUser.Id.ToString()),
|
||||
new Claim(ClaimTypes.Email, foundUser.Email),
|
||||
new Claim(ClaimTypes.Role, foundUser.Roles)
|
||||
new Claim(ClaimTypes.Role, foundUser.Roles),
|
||||
new Claim("Language", foundUser.Language ?? "")
|
||||
});
|
||||
|
||||
return new JwtSecurityTokenHandler().WriteToken(token);
|
||||
|
||||
Reference in New Issue
Block a user