easante (110) [Avatar] Offline
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 (62) [Avatar] Offline
Sorry for the delayed response. You're right. That change has been applied.