I\'m new to NodeJS and I try to build a login/registration system. Registration works fine but I\'m currently unable to login.
I find a example app using passport and no
this fix the error. need to use 'local' when you create a new LocalStrategy
passport.use('local', new LocalStrategy({ usernameField:'useName', passwordField: 'password', passReqToCallback: true