nsb*_*nin 10 email verification meteor
我想在创建一些用户时发送验证邮件.我使用accounts-password包,因此在我的代码中调用任何Accounts方法.
我在文档中读到了我需要调用的内容:
Accounts.sendVerificationEmail(userId, [email])
但问题是我不知道何时打电话给它.
我试图调用回调函数,Accounts.onCreateUser(func)但尚未在数据库中创建用户.
有任何想法吗?
小智 14
在服务器端:
Accounts.config({sendVerificationEmail: true, forbidClientAccountCreation: false});
Run Code Online (Sandbox Code Playgroud)
得到了上述评论的答案.