mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-17 01:00:07 +01:00
fix: use userid for jwt, migration for user roles
This commit is contained in:
@@ -70,7 +70,7 @@ public class AuthController : ControllerBase
|
||||
if (hashedFormPassword == user.PasswordHash)
|
||||
{
|
||||
// All set - generate the token and return it
|
||||
var token = guhf.GenerateJwtToken(formUser.Email);
|
||||
var token = guhf.GenerateJwtToken(user);
|
||||
SuccessfulLoginDTO response = user.ToSuccessfulLoginDTO(token);
|
||||
|
||||
return Ok(response);
|
||||
|
||||
Reference in New Issue
Block a user