Disable user create on client

Hello @all,

I have a very simple question … How to disable the Accounts.createUser() on client?

2 Likes

http://docs.meteor.com/#/full/accounts_config

So it would look like:

Accounts.config({
  forbidClientAccountCreation: true
});

Note that this code needs to be on the server.

6 Likes

Sashko, thank you very much.

thanks, actually needs to be loaded on server & client (/both directory) for it to to update the ui properly

2 Likes