fix: use userid for jwt, migration for user roles

This commit is contained in:
2025-07-17 10:39:22 +02:00
parent f34a1ee995
commit 3cd2eff522
8 changed files with 223 additions and 4 deletions

View File

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