Updated to a cleaner method.

This commit is contained in:
Tim Brandin 2016-03-31 01:01:56 +02:00
parent f8ec412f9f
commit fa87ef034c

View file

@ -70,10 +70,7 @@ Accounts.ui.config = function(options) {
"EMAIL_ONLY",
"NO_PASSWORD"
], options.passwordSignupFields)) {
if (Accounts.ui._options.passwordSignupFields)
throw new Error("Accounts.ui.config: Can't set `passwordSignupFields` more than once");
else
Accounts.ui._options.passwordSignupFields = options.passwordSignupFields;
Accounts.ui._options.passwordSignupFields = options.passwordSignupFields;
}
else {
throw new Error("Accounts.ui.config: Invalid option for `passwordSignupFields`: " + options.passwordSignupFields);