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

Commit

Permalink
Merge pull request #88 from igrowker/feature/authRefugee
Browse files Browse the repository at this point in the history
I add the photo and id property so that the information reaches the f…
  • Loading branch information
sarap13 authored Dec 6, 2024
2 parents 18de4ee + c72312e commit 3793734
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 3793734

Please sign in to comment.