Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Ombi/commit/0d1ee148c78e0db9c2ef8414c993823c1d001921 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed the user token issue

pull/1488/head
Jamie.Rees 8 years ago
parent 24e424f004
commit 0d1ee148c7

@ -61,7 +61,8 @@ namespace Ombi.Controllers
var claims = new List<Claim>
{
new Claim(JwtRegisteredClaimNames.Sub, user.UserName),
new Claim("name", user.UserName),
new Claim(ClaimTypes.NameIdentifier, user.Id),
new Claim(ClaimTypes.Name, user.UserName),
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString())
};
claims.AddRange(roles.Select(role => new Claim("role", role)));

Loading…
Cancel
Save