nicolaslopezj / meteor-apollo-accounts

Meteor accounts in GraphQL
MIT License
146 stars 37 forks source link

Disable Mutation createUser #83

Open enzolutions opened 6 years ago

enzolutions commented 6 years ago

Hi guys

How could I disable the user creation?

acomito commented 5 years ago

@enzolutions did you ever settle on a solution?

enzolutions commented 5 years ago

not yet :'(

RobertLowe commented 5 years ago
https://github.com/orionsoft/meteor-apollo-accounts/blob/master/meteor-server/src/Mutation/createUser.js#L14

Uses the Meteor method, so I imagine,

Accounts.config({
  forbidClientAccountCreation: true
});

https://docs.meteor.com/api/accounts-multi.html#AccountsCommon-config

Would be enough