Open binayakgourishankar opened 6 years ago
the cause is that passport.js require name = "username" and name = "password" exactly same in login.pug if you put any other name it wont work
Solved by configuring the passport to use a different variable name.
passport.use(new LocalStrategy({ usernameField: '<Custom Name>', passwordField: '<Custom Password>' } ...........
the cause is that passport.js require name = "username" and name = "password" exactly same in login.pug if you put any other name it wont work