From c8b441a72ec649289c1ed1217b7b5ed7871364af Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Lima <lgl15@inf.ufpr.br> Date: Wed, 28 Sep 2016 10:52:43 -0300 Subject: [PATCH] small fix --- src/libs/routes/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/routes/user.js b/src/libs/routes/user.js index 274e68bb..4cb42c04 100644 --- a/src/libs/routes/user.js +++ b/src/libs/routes/user.js @@ -55,7 +55,7 @@ userApp.post('/authenticate', (req, res) => { if (err) throw err; if(!user){ - res.send({success: false, msg: 'Authentication failed. User not found.'}); + res.json({success: false, msg: 'Authentication failed. User not found.'}); } else { user.comparePassword(req.body.password, (err, isMatch) => { -- GitLab