Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
I add the photo and id property so that the information reaches the f…
Browse files Browse the repository at this point in the history
…ront
  • Loading branch information
Jongabee committed Dec 6, 2024
1 parent 83ec89f commit c72312e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/authController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ export const loginUser = async (req: Request, res: Response): Promise<void> => {
message: "Inicio de sesión exitoso",
token,
user: {
id: user.id,
email: user.email,
name: user.name,
role: user.role,
photo: user.photo,
refugee: refugeeData,
},
});
Expand Down

0 comments on commit c72312e

Please sign in to comment.