log N
log N

Reputation: 945

authentication using node.js and mongoose and expressjs and passportjs

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

Answers (2)

saintedlama
saintedlama

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

shelman
shelman

Reputation: 2699

Have you taken a look at this page of the passportjs guide?

http://passportjs.org/guide/username-password.html

Upvotes: 3

Related Questions