https://github.com/studiointeract/accounts-ui
meteor add zetoff:accounts-material-ui
In addition to React this package also depends on material-ui. So make sure it is installed:
meteor npm install -S material-ui
We support the standard configuration in the account-ui package. But have extended with some new options.
meteor add accounts-password
meteor add zetoff:accounts-material-ui
meteor npm install -S material-ui
import React from 'react';
import { Accounts } from 'meteor/std:accounts-ui';
Accounts.ui.config({
passwordSignupFields: 'NO_PASSWORD',
loginPath: '/',
});
if (Meteor.isClient) {
ReactDOM.render(<Accounts.ui.LoginForm />, document.body)
}
meteor add accounts-password
meteor add zetoff:accounts-material-ui
meteor npm install -S material-ui
import { FlowRouter } from 'meteor/kadira:flow-router-ssr';
import { Accounts } from 'meteor/std:accounts-ui';
import React from 'react';
Accounts.ui.config({
passwordSignupFields: 'NO_PASSWORD',
loginPath: '/login',
onSignedInHook: () => FlowRouter.go('/'),
onSignedOutHook: () => FlowRouter.go('/')
});
FlowRouter.route("/login", {
action(params) {
mount(MainLayout, {
content: <Accounts.ui.LoginForm />
});
}
});
Made by Zetoff