accounts-ui
Documentation of Meteor's accounts-ui
package.
A turn-key user interface for Meteor Accounts.
To add Accounts and a set of login controls to an application, add theaccounts-ui
package and at least one login provider package:accounts-password
, accounts-facebook
, accounts-github
,accounts-google
, accounts-twitter
, or accounts-weibo
.
Then simply add the {{> loginButtons}}
helper to an HTML file. Thiswill place a login widget on the page. If there is only one provider configuredand it is an external service, this will add a login/logout button. If you useaccounts-password
or use multiple external login services, this will adda “Sign in” link which opens a dropdown menu with login options. If you plan toposition the login dropdown in the right edge of the screen, use{{> loginButtons align="right"}}
in order to get the dropdown to layitself out without expanding off the edge of the screen.
To configure the behavior of {{> loginButtons}}
, useAccounts.ui.config
.
accounts-ui
also includes modal popup dialogs to handle links fromsendResetPasswordEmail
, sendVerificationEmail
,and sendEnrollmentEmail
. Thesedo not have to be manually placed in HTML: they are automatically activatedwhen the URLs are loaded.
If you want to control the look and feel of your accounts system a little more, we recommend reading the useraccounts section of the Meteor Guide.