Releases: robophil/sails-hook-jsonwebtoken
Releases · robophil/sails-hook-jsonwebtoken
Stable Release
Multiple account type
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.
changed bcrypt to bcryptjs
Issues face when installing bcrypt for some users
Changed bcrypt
to bcryptjs
.
bcryptjs is slightly slower (2.5 secs), but eliminates npm install
error from bcrypt