passport / todos-express-password

Todo app using Express and Passport for sign in with username and password.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

it doesnt work at all

miraclesumail opened this issue · comments

after login success, the req has no user property, and passport.deserializeUser doesnt run at all

  • can, when you defined you to miss option passport.use(new Strategy ({usernameField: 'email'}, function ())
  • because default name field in the form is the username, if you login with email, you must add {usernameField: 'email'} to first params of Strategy

This example app is confirmed to be working. There's not enough information reported here to be actionable, so I'm closing. If more information can be provided, please reply here and re-open the issue.