passport js missing credentials

前端 未结 7 676
夕颜
夕颜 2020-12-31 02:03

Been working on this for a few hours now, pretty frustrating...

router.post(\'/\',
passport.authenticate(\'local-signup\', function(err, user, info) {
    co         


        
7条回答
  •  隐瞒了意图╮
    2020-12-31 02:42

    Mine was spelling mistake issue. I hade usernameFeild: 'email',

    However, it should be usernameField: 'email',

提交回复
热议问题