How to change the Accounts-UI template?

GG. picture GG. · Dec 1, 2012 · Viewed 7.3k times · Source

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?

Answer

Rahul picture Rahul · Dec 26, 2012

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'
});