Skip to content

Commit

Permalink
Commit added user name to return in auth-router for login post action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Stanley committed Apr 15, 2020
1 parent 190e7d8 commit a9ef5ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth/auth-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ router.post('/login', (req, res) => {
res.status(200).json({
message: 'Login successful!',
token,
user_id: user.id
user_id: user.id,
username: user.username
});
} else {
res
Expand Down

0 comments on commit a9ef5ef

Please sign in to comment.