Disable User signup in accounts

Hello friends, I need your help in getting this issue done,
In the app that I am building currently, only the Admin should be able to add users, so no one can register himself, and for security purpose, I disabled the client from creating accounts by adding this to the server:
forbidClientAccountCreation: true

but this option disabled me also from calling the Accounts.createUser() from the server side by Meteor.call method, so is there a way to overcome this issue.?
another question is there any way to prevent the default behavior of Accounts to auto-login after creation, as when I am creating a user from the admin panel I am automatically getting logged in to the newly created user.

Thanx in advance

Accounts.updateOrCreateUserFromExternalService may help.


    forbidClientAccountCreation: true
1 Like