Passport JS successRedirect hangs in Node.js

前端 未结 1 711
无人及你
无人及你 2021-01-26 01:48

I am using passports local-signup and can create a user via a form and have the page successfully redirect to a page I have specified.

My issue at the mome

相关标签:
1条回答
  • 2021-01-26 02:09

    try this way :

    passport.authenticate('local', { 
          successRedirect : '/members', 
          failureRedirect : '/', 
          failureFlash : true 
    })(req, res, next);
    
    0 讨论(0)
提交回复
热议问题