账户onCreateUser未按预期工作Meteor

时间:2015-08-12 07:30:34

标签: facebook meteor meteor-blaze meteor-accounts

我使用自定义用户界面登录Facebook。没有Accounts.onCreateUser功能,这完美地工作。即使我没有触及profile功能中的Accounts.onCreateUser对象,用户界面也不会显示已登录的用户名。

blank user name

当我使用onCreateUser时会发生这种情况,这是我在该函数中使用的代码。

Balance.insert({
    userID: user._id,
    coin : 0
});
console.log('balance working');

return user;

没有onCreateUser,工作正常。截图如下。

working

blaze属性为{{currentUser.profile.name}}

0 个答案:

没有答案
相关问题