Separating users database into two different collections

自作多情 提交于 2019-12-11 05:52:24

问题


I want to build a project that will contain different type of users such us Admins & Employees.

Is it possible to make it done through accounts-password and accounts-ui by separating Meteor.users collection?


回答1:


You can't do that, users is the heart of the authentication system.

I would recommend using the package alanning:roles to provide different levels of privilege.

Read more here https://atmospherejs.com/alanning/roles

There is a package to help administer these here https://github.com/hharnisc/meteor-accounts-admin-ui-bootstrap-3



来源:https://stackoverflow.com/questions/40731234/separating-users-database-into-two-different-collections

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!