Reputation: 945
Guys where can I get an example of authentication using node js and mongodb and passportjs using the username and password entered in the text fields.I am unable to figure out the stuff given in passportjs website.Can I get a simple running example of this type and from where?
Upvotes: 1
Views: 1449
Reputation: 6898
You could implement this feature even easier by using passport-local-mongoose that offers an integrated solution for passport, passport-local and a mongoose model. You can find documentation and examples at the github page.
Btw: I'm the author of this module.
Upvotes: 3
Reputation: 2699
Have you taken a look at this page of the passportjs guide?
http://passportjs.org/guide/username-password.html
Upvotes: 3