Spencer Cornwall
Spencer Cornwall

Reputation: 289

Meteor signups are forbidden

I've been hunting around, and I've seen similar posts, which were all fixed by removing a package, or adding forbidClientAccountCreation: false;I am using accounts-password, and accounts-ui, I've included the {{> loginbuttons}} But I still can't create users. From the documentation, it's supposed to simply work, without writing any further code... As do many tutorials I looked at... Any help appreciated!

Upvotes: 1

Views: 113

Answers (1)

Mikkel
Mikkel

Reputation: 7777

I presume you mean you can't self-register? This setting is usually in a startup method in a a /common or /both folder.

This file is from one of my projects as /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
  });

});

Upvotes: 2

Related Questions