From d1e63a57409471544a6cbb7e793ca2c7d7bf9dca Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Lima <lgl15@inf.ufpr.br> Date: Thu, 29 Sep 2016 09:39:10 -0300 Subject: [PATCH] Revert "small fix" This reverts commit c8b441a72ec649289c1ed1217b7b5ed7871364af. --- 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 4cb42c04..274e68bb 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.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) => { -- GitLab