kpamela / SOEN343

https://tecmarket.herokuapp.com/
2 stars 0 forks source link

Register & Login validation #115

Closed FrankSauve closed 6 years ago

FrankSauve commented 6 years ago

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

kpamela commented 6 years ago

image

kpamela commented 6 years ago

I don't have a valid name :'(

FrankSauve commented 6 years ago

I think it's because of the capital letter. We have to change the regular expression