This commit is contained in:
arnaucode
2017-01-29 20:02:57 +01:00
parent 85c505dcd5
commit 28b8aa896b
2 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,9 @@ exports.login = function(req, res) {
// find the user
userModel.findOne({
username: req.body.username
}, function(err, user) {
})
.select('+password')
.exec(function(err, user) {
if (err) throw err;