Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Thakur committed Jan 20, 2021
1 parent 1c4007b commit 195ed64
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ function insertUser(req, res){
}

function fetchUser(req, res) {
console.log('login');
console.log(req.body);
user.findOne( { email: req.body.email, password: req.body.password }, function(err, docs) {
if(!err){
console.log(docs);
res.json(docs);
} else {
console.log('Error in retrieving user: ' + err);
Expand Down

0 comments on commit 195ed64

Please sign in to comment.