How to change the Accounts-UI template?

…衆ロ難τιáo~ 提交于 2019-12-10 15:29:05

问题


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.

I am looking for 2 hours how this is possible. Any idea how to achieve this?


回答1:


You can configure the Accounts UI with Accounts.ui.config. For example:

Accounts.ui.config({
  requestPermissions: {
    facebook: ['user_likes'],
    github: ['user', 'repo']
  },
  passwordSignupFields: 'USERNAME_AND_OPTIONAL_EMAIL'
});


来源:https://stackoverflow.com/questions/13663354/how-to-change-the-accounts-ui-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!