mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Rename forbidSignups -> forbidClientAccountCreation
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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})
|
||||
}) ();
|
||||
|
||||
Reference in New Issue
Block a user