In UserController.js, the update method has a slight bug.
The password that is given in the request body must be checked to see whether it is the correct user password. This is done after the user has already been updated and instead should happen before.
This is the line that Im talking about
In
UserController.js, the update method has a slight bug.The password that is given in the request body must be checked to see whether it is the correct user password. This is done after the user has already been updated and instead should happen before.
This is the line that Im talking about