I'm trying to make a user management app where is want to give my user with admin privileges to create users and define their password and role as well. Also, in future admin can be able to change the password. Is that possible in the meteor ? I'm using the core accounts-password
package.
Any suggestions ?
Yes.
Make use of server side methods. First, create a server side method that creates a user with Accounts.createUser(options, [callback])
. You can set the user's password and role (within the profile) in the options.
Then, create another server side method which calls Accounts.setPassword(userId, password, options)
to change the user's password.