Add the language to the user.

This commit is contained in:
Sébastien André
2021-05-17 18:08:19 +02:00
parent 96fbf5cebd
commit bc17e7f789
5 changed files with 16 additions and 9 deletions

View File

@@ -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);