简体   繁体   中英

authentication using node.js and mongoose and expressjs and passportjs

伙计们,在哪里可以使用在文本字段中输入的用户名和密码使用node js和mongodb和passportjs进行身份验证的示例,我无法弄清passwordjs网站上给出的内容,能否获得这种类型的简单运行示例从哪里来的?

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM