【发布时间】:2014-08-28 00:29:56
【问题描述】:
在我的 Meteor 应用程序的管理部分,我想使用 USERNAME_AND_OPTIONAL_EMAIL(或 EMAIL_ONLY)为“PowerUser”调用 Account.CreateUser(..),然后使用 sendVerificationEmail,这很好用......
Accounts.config(sendVerificationEmail: true);
但接下来我还想使用 USERNAME_ONLY 而不是 sendVerificationEmail 为“LocalUser”调用 Account.CreateUser(..),因为本地用户帐户不需要电子邮件。
Accounts.config(sendVerificationEmail: false);
当我第二次调用 Accounts.config 时,我的问题是“错误:不能多次设置 sendVerificationEmail”。
【问题讨论】: