简体   繁体   English

护照可以处理用户注册吗?

[英]Does passportjs handle user signup?

I scan the passportjs doc and don't find a user signup function. 我扫描了passportjs文档,但没有找到用户注册功能。 (Here I store user information in a self-host server.) Can passport handle that? (我在这里将用户信息存储在自托管服务器中。)护照可以处理吗?

Passport.js – is a middleware, not complete application. Passport.js –是中间件,不是完整的应用程序。 So short answer is – no, passport.js does not perform complete signup process. 简短的答案是–不,passport.js不会执行完整的注册过程。 I believe there is no any other library could do this since your application has some unique code that performs actions usually called business logic or application logic or just simply logic. 我相信没有其他库可以执行此操作,因为您的应用程序具有一些执行通常称为业务逻辑或应用程序逻辑或仅称为逻辑的操作的唯一代码。 But you can use passport.js to reduce amount of your code routinе. 但是您可以使用passport.js减少例行代码的数量。 This is actually the general purpose which passport.js was used for. 这实际上是passport.js的通用用途。 Probably the feature suitable for you is password-local . 适合您的功能可能是本地密码 There is well detailed tutorial for this feature http://danialk.github.io/blog/2013/02/23/authentication-using-passportjs/ 有关此功能的详细教程非常详细, 网址http://danialk.github.io/blog/2013/02/23/authentication-using-passportjs/

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

相关问题 PassPortjs设置本地注册以使用嵌套的json - PassPortjs setting local signup to use nested json 当我在passportJS中反序列化用户时,用户没有通过 - When i deserializeUser in passportJS the user does not get passed passportjs +facebook + 当前用户 - passportjs +facebook + current User PassportJS没有将注册数据传递到数据库,可能是数据库连接问题 - PassportJS not passing signup data to database, possible database connection issue 为什么 Firebase (onAuthStateChanged) 看不到 Google 注册用户(使用 signInWithCredential)? - Why Firebase (onAuthStateChanged) does not see a Google signup user (with signInWithCredential)? 如何使用passportJS切换用户配置文件 - How to switch user profiles with passportJS 使用KoaJS和PassportJS自动登录用户 - Automatically logging in a user with KoaJS and PassportJS 使用passportjs完成本地用户身份验证后,将Twitter帐户与Passportjs链接 - Link Twitter Account with Passportjs after local user auth is completed with passportjs 通行证js:用户未定义,req.isAuthenticated()为假 - passportjs: user undefined, req.isAuthenticated() is false 如何在nodejs passportjs中实现用户角色 - How to implement User roles in nodejs passportjs
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM