Skip to content

Multiple account type

Compare
Choose a tag to compare
@robophil robophil released this 05 Feb 17:28
· 27 commits to master since this release

Changes

Creation of account is done by a service. JwtService.createUser
On signup, an accountType attribute of user is automatically added to the new user, more types can be added to that user so as to allow more multiple access/user type eg admin or normal user. The accountType is a one to many association so a user can be an admin, a manager and more. This roles can be added, updated, removed, similar to what is done by sails permission here.

A helper method to add, update & remove accountType attributes would be added in the next release.