Skip to content

Commit

Permalink
Fixed: Endpoints returning Email 3 times instead of other user data
Browse files Browse the repository at this point in the history
  • Loading branch information
Legolas2222 committed Oct 19, 2023
1 parent 0888e25 commit 8085bc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TodoistClone.Api/Controllers/AuthenticationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public IActionResult Register(RegisterRequest request)

var response = new AuthenticationResponse(
authResult.user.Id,
authResult.user.Email,
authResult.user.Email,
authResult.user.FirstName,
authResult.user.LastName,
authResult.user.Email,
authResult.Token);

Expand All @@ -43,8 +43,8 @@ public IActionResult Login(LoginRequest request)

var response = new AuthenticationResponse(
authResult.user.Id,
authResult.user.Email,
authResult.user.Email,
authResult.user.FirstName,
authResult.user.LastName,
authResult.user.Email,
authResult.Token);

Expand Down

0 comments on commit 8085bc2

Please sign in to comment.