mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
fixed #631
This commit is contained in:
parent
fd9ff4c906
commit
7895141102
1 changed files with 22 additions and 25 deletions
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue