Creating account using accounts-password in meteor

大城市里の小女人 提交于 2019-12-11 04:07:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!