设置useraccounts:Meteor中的bootstrap

时间:2017-03-10 03:19:29

标签: meteor

我设置了useraccounts:bootstrap with blaze,安装了用户帐户密码和useraccounts:flow-routing

服务器上的

到目前为止我有这个代码:

import { FlowRouter } from 'meteor/kadira:flow-router';
import { BlazeLayout } from 'meteor/kadira:blaze-layout';
import { AccountsTemplates} from 'meteor/useraccounts:bootstrap';

// Import needed templates
import '../../ui/layouts/body/body.js';
import '../../ui/pages/home/home.js';
import '../../ui/pages/not-found/not-found.js';



AccountsTemplates.configure({
  defaultLayout: 'App_body',
  defaultContentRegion: 'main',
  defaultLayoutRegions: {}
});

// Define these routes in a file loaded on both client and server
AccountsTemplates.configureRoute('signIn', {
  name: 'signin',
  path: '/signin'
});

AccountsTemplates.configureRoute('signUp', {
  name: 'join',
  path: '/join'
});

AccountsTemplates.configureRoute('forgotPwd');

AccountsTemplates.configureRoute('resetPwd', {
  name: 'resetPwd',
  path: '/reset-password'
});

App_body和main设置正确,因为我的其他路由使用网站的标题和导航栏,但是当我转到/ signin它返回404时,我无法找到如何输入useraccounts:引导路线,有什么帮助吗?

感谢

0 个答案:

没有答案