codersforcauses / p2s-backend

p2s rugbyworks backend
MIT License
7 stars 0 forks source link

[BUG] Catch and change error when logging in as non-verified user #140

Closed Drewbi closed 5 years ago

Drewbi commented 5 years ago

Right now the error is 500 "'user' record in the database is missing a 'password'" but this should really get caught by the server and the user checked to see if "isVerified" is false and if so return a non-verified error.

Drewbi commented 5 years ago

Swapped isVerified with authenticate. Hope that doesn't break anything. Famous last words.