用户帐户已更新为Useraccounts:iron-routing [英] Useraccounts updated to Useraccounts:iron-routing
问题描述
更新了我的流星应用程序并有用户帐户,它突然告诉我要安装用户帐户:用铁路由将其与Iron Router一起使用...
updated my meteor app and had useraccounts on it and it suddenly told me to install the useraccounts:iron-routing to use it with Iron Router...
安装了软件包,现在它告诉了我
Installed the package and now its telling me
W20150818-19:23:20.744(-6)? (STDERR) Error: changePwd route configured but enablePasswordChange set to false!
并且不会启动我的应用程序,但是我的AccountsTemplates.configure({已全部设置为true ...这是代码:
and won't start my app, but my AccountsTemplates.configure({ has all seted to true... here is the code:
//Routes
AccountsTemplates.configureRoute('changePwd');
AccountsTemplates.configureRoute('enrollAccount');
AccountsTemplates.configureRoute('forgotPwd');
AccountsTemplates.configureRoute('resetPwd');
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('verifyEmail');
// Options
AccountsTemplates.configure({
defaultLayout: 'layout',
showForgotPasswordLink: true,
overrideLoginErrors: true,
enablePasswordChange: true,
sendVerificationEmail: false,
//enforceEmailVerification: true,
//confirmPassword: true,
//continuousValidation: false,
//displayFormLabels: true,
//forbidClientAccountCreation: false,
//formValidationFeedback: true,
//homeRoutePath: '/',
//showAddRemoveServices: false,
//showPlaceholders: true,
negativeValidation: true,
positiveValidation:true,
negativeFeedback: false,
positiveFeedback:true,
// Privacy Policy and Terms of Use
//privacyUrl: 'privacy',
//termsUrl: 'terms-of-use',
});
AccountsTemplates.configure({
showLabels: true,
negativeValidation: true,
negativeFeedback: true
});
AccountsTemplates.addField({
_id: "username",
type: "text",
displayName: "username",
required: true,
minLength: 5,
});
AccountsTemplates.removeField('email');
AccountsTemplates.addField({
_id: 'email',
type: 'email',
required: true,
displayName: "email",
re: /.+@(.+){2,}\.(.+){2,}/,
errStr: 'Invalid email',
});
AccountsTemplates.removeField('password');
AccountsTemplates.addField({
_id: 'password',
type: 'password',
required: true,
minLength: 6,
re: /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}/,
errStr: 'At least 1 digit, 1 lowercase and 1 uppercase',
});
有什么帮助吗?
Thnx
推荐答案
尝试在文件中的AccountTemplates.configureRoute之前移动AccountTemplates.configure.另外,还要确保客户端和服务器都可以访问其中的任何文件.
Try moving AccountTemplates.configure BEFORE AccountTemplates.configureRoute in your file. Also make sure whatever file those are in is accessible to both the client and server.
这篇关于用户帐户已更新为Useraccounts:iron-routing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!