简体   繁体   English

使用node.js和mongoose以及expressjs和passportjs进行身份验证

[英]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? 您是否看过passportjs指南的本页?

http://passportjs.org/guide/username-password.html 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. 您可以在github页面上找到文档和示例。

Btw: I'm the author of this module. 顺便说一句:我是这个模块的作者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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