每当我有Accounts.onEmailVerificationLink
的侧面启动功能时,我都会收到以下错误消息:
Accounts.onEmailVerificationLink was called more than once. Only one callback added will be executed.
我该怎么做才能正确覆盖这个功能?
答案 0 :(得分:0)
Accounts.onEmailVerificationLink ,而不是在Meteor.startup()中调用。
你可以试试这个:
if (Meteor.isClient) {
Accounts.onEmailVerificationLink(function(token, done) {
...
});
}