Skip to content

Commit

Permalink
remove return of all params
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasaugustodeveloper committed Oct 26, 2020
1 parent c30ebe9 commit af8cbc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Controllers/Http/AuthController.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ class AuthController {

await userInstance.save()

return response.json(userInstance)
const { email } = userInstance;

return response.json({ email })
}

async profile({ request, response, auth }) {
Expand Down

0 comments on commit af8cbc3

Please sign in to comment.