Refactored what Sarb did for register validation.
Added Login validation.
We now see error messages for server errors such as wrong password or username does not exist.
PS: Had to remove res.status(500) in the authenticate route. This might cause problems in some unit tests @LeCleric
Refactored what Sarb did for register validation. Added Login validation. We now see error messages for server errors such as wrong password or username does not exist.
PS: Had to remove res.status(500) in the authenticate route. This might cause problems in some unit tests @LeCleric
79