Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amarell dev #5

Merged
merged 6 commits into from
May 8, 2022
Merged

Amarell dev #5

merged 6 commits into from
May 8, 2022

Conversation

amarell
Copy link
Collaborator

@amarell amarell commented May 7, 2022

  • Added a route for updating user
  • added get user route

@amarell amarell requested review from adnan-mujagic and removed request for adnan-mujagic May 7, 2022 18:56
@amarell
Copy link
Collaborator Author

amarell commented May 7, 2022

@adnan-mujagic

const loggedInUser = jwt.verify(req.headers.authorization);

if (req.params.user_id !== loggedInUser.uid) {
return res.status(200).json({
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably also return a 403 status code - Unauthorized

@adnan-mujagic adnan-mujagic merged commit 1289564 into main May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants