【发布时间】:2019-12-22 04:04:03
【问题描述】:
我正在创建没有accounts.ui 包的帐户,只使用accounts-base/accounts-password。我在server 一侧有一个代码
Accounts.config({
sendVerificationEmail: true,
forbidClientAccountCreation: true // cause we call it from server code
});
然后在提交注册表单时我调用
Accounts.createUser({User account document where `email` field is set to actual email});
它创建用户(我稍后可以使用此用户登录)没有问题或错误,除非它不向我发送任何电子邮件。
我安装了流星电子邮件包,但我没有配置电子邮件 URL,因此它应该在标准输出中打印不会发生的消息。
我可以使用 post user create hook 并手动发送电子邮件,但我想它应该可以在没有文档中描述的额外工作的情况下工作。
Meteor 版本是 1.0.3.1
【问题讨论】: