[英]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.