根据望远镜 http://demo.telesc.pe/例子 (源代码 https://github.com/SachaG/Telescope),可以显示自定义的 account-ui 表单(参见他的用户登录.html https://github.com/SachaG/Telescope/blob/master/client/views/users/user_signin.html)并使用{{loginButtons}}
(见他的nav.html https://github.com/SachaG/Telescope/blob/master/client/views/common/nav.html)以默认保留其他内容Accounts-UI package
.
我花了两个小时寻找这怎么可能。知道如何实现这一目标吗?
您可以使用以下方式配置帐户 UI帐户.ui.config http://docs.meteor.com/#accounts_ui_config。例如:
Accounts.ui.config({
requestPermissions: {
facebook: ['user_likes'],
github: ['user', 'repo']
},
passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'
});
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)