问题
I am trying to create account in project created using meteor-boilerplate.I am trying to create it from client. When I hit create account, error comes "signups forbidden". I can still log in using the credentials present in db. I'm using accounts-password, accounts-UI, Will anyone tell me solution...
回答1:
This happened to me when conflicting account packages were present at the same time. I solved it by doing
meteor remove useraccounts:bootstrap
In your case, it may be accounts-ui or something else that needs to be removed.
回答2:
Your project has disabled signup from the client side.
Look for this in your code somewhere
Accounts.config({
forbidClientAccountCreation : true
});
and set forbidClientAccountCreation
to false
.
来源:https://stackoverflow.com/questions/28561612/creating-account-using-accounts-password-in-meteor