This commit is contained in:
Luca Mussi 2014-12-16 09:52:28 +01:00
parent fd9ff4c906
commit 7895141102

View file

@ -5,9 +5,9 @@
//Fields
AccountsTemplates.addField({
_id: "username",
type: "text",
displayName: "username",
_id: 'username',
type: 'text',
displayName: 'username',
required: true,
minLength: 3,
errStr: 'error.minChar'
@ -35,22 +35,22 @@ AccountsTemplates.addField({
/*
AccountsTemplates.addField({
_id: "username_and_email",
type: "text",
displayName: "Name or Email",
placeholder: "name or email",
_id: 'username_and_email',
type: 'text',
displayName: 'Name or Email',
placeholder: 'name or email',
});
*/
//Routes
AccountsTemplates.configureRoute("signIn");
AccountsTemplates.configureRoute("signUp");
AccountsTemplates.configureRoute("forgotPwd");
AccountsTemplates.configureRoute("resetPwd");
//AccountsTemplates.configureRoute("changePwd");
//AccountsTemplates.configureRoute("enrollAccount");
//AccountsTemplates.configureRoute("verifyEmail");
AccountsTemplates.configureRoute('signIn');
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('forgotPwd');
AccountsTemplates.configureRoute('resetPwd');
//AccountsTemplates.configureRoute('changePwd');
//AccountsTemplates.configureRoute('enrollAccount');
//AccountsTemplates.configureRoute('verifyEmail');
// Options
@ -64,14 +64,11 @@ AccountsTemplates.configure({
positiveFeedback: false,
negativeValidation: true,
positiveValidation: true
/*
sendVerificationEmail: true,
continuousValidation: false,
showLabels: true,
forbidClientAccountCreation: false,
formValidationFeedback: true,
homeRoutePath: "/",
showAddRemoveServices: false,
showPlaceholders: true,
*/
});
});
// hack to get signOut route not considered among previous paths
if (Meteor.isClient) {
Meteor.startup(function(){
AccountsTemplates.knownRoutes.push('/sign-out');
});
}