Skip to content
Snippets Groups Projects
Commit d1e63a57 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

Revert "small fix"

This reverts commit c8b441a7.
parent c8b441a7
No related branches found
No related tags found
2 merge requests!116Release v1.0.0,!25Auth
......@@ -55,7 +55,7 @@ userApp.post('/authenticate', (req, res) => {
if (err) throw err;
if(!user){
res.json({success: false, msg: 'Authentication failed. User not found.'});
res.send({success: false, msg: 'Authentication failed. User not found.'});
}
else {
user.comparePassword(req.body.password, (err, isMatch) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment