Rename forbidSignups -> forbidClientAccountCreation

This commit is contained in:
Avital Oliver
2012-10-09 20:13:59 -07:00
parent df622401b4
commit cbf06a5679
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ if (!Accounts._options) {
// - sendConfirmationEmail {Boolean}
// Send email address confirmation emails to new users created from
// client signups.
// - forbidSignups {Boolean}
// - forbidClientAccountCreation {Boolean}
// Do not allow clients to create accounts directly.
Accounts.config = function(options) {
Accounts._options = options;

View File

@@ -353,7 +353,7 @@
createUser: function (options, extra) {
options = _.clone(options);
options.generateLoginToken = true;
if (Accounts._options.forbidSignups)
if (Accounts._options.forbidClientAccountCreation)
throw new Meteor.Error(403, "Signups forbidden");
// Create user. result contains id and token.

View File

@@ -330,5 +330,5 @@ if (Meteor.isServer) (function () {
});
});
// XXX would be nice to test Accounts.config({forbidSignups: true})
// XXX would be nice to test Accounts.config({forbidClientAccountCreation: true})
}) ();