Revize b782f829
Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)
Backend/Core/Services/AuthService/AuthService.cs | ||
---|---|---|
28 | 28 |
var expiration = DateTime.Now.AddHours(12); |
29 | 29 |
var token = jwtUtils.GenerateJwtToken(user, expiration); |
30 | 30 |
|
31 |
var loginResult = new LoginResponse(true, token, expiration); |
|
31 |
var loginResult = new LoginResponse(true, token, expiration, user.Role);
|
|
32 | 32 |
|
33 | 33 |
return loginResult; |
34 | 34 |
} |
Také k dispozici: Unified diff
Authentication controller now returns user role