mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
updated
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user