Meteor Account UI Bootstrap 登录回调
Posted
技术标签:
【中文标题】Meteor Account UI Bootstrap 登录回调【英文标题】:Meteor Account UI Bootstrap Login Callback 【发布时间】:2016-03-15 08:51:15 【问题描述】:我正在尝试修改 Meteor 的这个包meteor-accounts-ui-bootstrap-3
用户登录成功时如何定义自己的回调函数?
【问题讨论】:
【参考方案1】:你可以使用:
Accounts.onLogin(function(user)
//this is the callback
);
例如,您可以使用它去某些路线或获取用户 ID。
例子
Accounts.onLogin(function ()
Router.go("admin");
);
【讨论】:
谢谢!我认为我需要覆盖他们的功能。 你能告诉我在哪里可以找到你的答案吗? (链接到文档,因为我想获取更多的东西,例如userid) 看这个:justmeteor.com/blog/…以上是关于Meteor Account UI Bootstrap 登录回调的主要内容,如果未能解决你的问题,请参考以下文章
Meteor + Onsen UI + Monaca 云构建
Meteor Accounts-UI-Bootstrap - 弹出窗口不关闭
Meteor Angular UI.Router 链接的语法要求是啥?