even more cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michele Scandura 2021-09-16 15:27:03 +01:00
parent 7808363a07
commit 4179143fdb
15 changed files with 192 additions and 183 deletions

View file

@ -113,10 +113,13 @@ namespace Sledgemapper.Api.Controllers
{
var jwtToken = GenerateJwtToken(existingUser);
return Ok(new RegistrationResponse()
return Ok(new LoginResponse()
{
Result = true,
Token = jwtToken
Token = jwtToken,
Username = existingUser.Email,
Initials = existingUser.Initials,
Id = existingUser.Id
});
}
else