每当我在客户端启动函数中使用Accounts.onEmailVerificationLink时,我都会收到以下错误信息:
Accounts.onEmailVerificationLink was called more than once. Only one callback added will be executed.
我应该怎么做才能正确地覆盖这个函数?
发布于 2015-08-07 11:54:59
应该在顶级代码中调用Accounts.onEmailVerificationLink,而不是在Meteor.startup()中调用。
您可以尝试这样做:
if (Meteor.isClient) {
Accounts.onEmailVerificationLink(function(token, done) {
...
});
}https://stackoverflow.com/questions/31868191
复制相似问题