Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Management System in node.js

The requirements of most web applications regarding the management of users are fairly common:

  • A user registers himself

  • Receives an email for confirmation

  • Requests a forgotten password

  • An admin person assigns a role to the user, etc.

Is there a node.js/express.js project that has already implemented the flow and is customizable?

Passport.js allows the application to only authenticate but not perform the functions listed above. I have seen Drywall. It uses MongoDB. I am looking for a module that lets me customize the user storage mechanism as well, so that I can use my own MySQL DB to store users.

ASP .NET provides such features in the membership module and also lets developers customize it completely. Do we have something for Node.js?

like image 663
Yash Avatar asked Sep 29 '22 20:09

Yash


People also ask

Is node js a database management system?

Node. js supports all kinds of databases no matter if it is a relational database or NoSQL database. However, NoSQL databases like MongoDb are the best fit with Node. js.

What is middleware in node JS?

The middleware in node. js is a function that will have all the access for requesting an object, responding to an object, and moving to the next middleware function in the application request-response cycle.


2 Answers

I use sails framework and there are some packages that integrates with sails. For authentication i found this package: https://github.com/kasperisager/sails-generate-auth, maybe it help you.

like image 138
Victor Avatar answered Oct 24 '22 13:10

Victor


To build on Victor's answer, there is a comprehensive user/role management system for express called sails-permissions that is based on sails.js.

like image 43
Travis Webb Avatar answered Oct 24 '22 12:10

Travis Webb