Passport js local strategy custom callback “Missing credentials”
问题 I have a really annoying problem with Node js, express 4 and passport. I have tried all options I can think of, but still no solution. Couldn't find a solution from other posts for this problem. Code: app.post('/login', function(req, res, next) { console.log(req.body.user_email); console.log(req.body.user_password); passport.authenticate('local', function(err, user, info) { console.log(info); ... The problem is that for some reason, passport does not get the credentials and says at the