如何更改Accounts-UI模板? [英] How to change the Accounts-UI template?
本文介绍了如何更改Accounts-UI模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据望远镜示例(源代码),则可以显示自定义帐户用户界面表单(请参见他的 nav.html )默认情况下将其他内容保留在Accounts-UI package
中.
According to the Telescope example (source code), it is possible to display a custom accounts-ui form (see his user_signin.html) and use {{loginButtons}}
(see his nav.html) to keep the other things by default from Accounts-UI package
.
我正在寻找2个小时是怎么可能的.知道如何实现吗?
I am looking for 2 hours how this is possible. Any idea how to achieve this?
推荐答案
您可以使用帐户配置帐户UI. ui.config .例如:
Accounts.ui.config({
requestPermissions: {
facebook: ['user_likes'],
github: ['user', 'repo']
},
passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'
});
这篇关于如何更改Accounts-UI模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文