mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 09:51:40 -05:00
Updated to a cleaner method.
This commit is contained in:
parent
f8ec412f9f
commit
fa87ef034c
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue