禁止 Meteor 注册

Meteor signups are forbidden

我一直在四处寻找,我看到过类似的帖子,都是通过删除包或添加来修复的 forbidClientAccountCreation: false;我正在使用 accounts-password 和 accounts-ui, 我已经包含了 {{> loginbuttons}} 但我仍然无法创建用户。从文档来看,它应该可以简单地工作,而无需编写任何进一步的代码......就像我看过的许多教程一样......感谢任何帮助!

我猜你的意思是你不能自助注册?此设置通常位于 /common/both 文件夹中的启动方法中。

此文件来自我的项目之一 /both/startup.js

import { Meteor } from 'meteor/meteor';
//
// This code is run by both client and server. For Accounts.config this is a MUST!
//
Meteor.startup(() => {

  Accounts.config({
    sendVerificationEmail: false,
    forbidClientAccountCreation: true
  });

});