Search code examples
templatesoverridingmeteoruser-accounts

How to change the Accounts-UI template?


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?


Solution

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