easante (110) [Avatar] Offline
#1
In the authenticate middleware in the usersController, the if condition throws an error if the email address typed in does not match any user email address in the database. For it to work, the condition should change to this:
if (user && user.password === req.body.password)
TheWexler (56) [Avatar] Offline
#2
Sorry for the delayed response. You're right. That change has been applied.