mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Fixed redirect issue that user would always be redirected to "/" after sign up
This commit is contained in:
parent
eeb961d905
commit
466c4673ee
1 changed files with 24 additions and 24 deletions
|
@ -8,7 +8,7 @@ AccountsTemplates.addField({
|
|||
_id: "username",
|
||||
type: "text",
|
||||
displayName: "username",
|
||||
required: true,
|
||||
required: true
|
||||
//minLength: 5,
|
||||
});
|
||||
|
||||
|
@ -20,33 +20,33 @@ AccountsTemplates.addField({
|
|||
re: /.+@(.+){2,}\.(.+){2,}/,
|
||||
errStr: 'error.accounts.Invalid email',
|
||||
trim: true,
|
||||
lowercase: true,
|
||||
lowercase: true
|
||||
});
|
||||
|
||||
AccountsTemplates.removeField('password');
|
||||
AccountsTemplates.addField({
|
||||
_id: 'password',
|
||||
type: 'password',
|
||||
required: true,
|
||||
required: true
|
||||
//minLength: 7,
|
||||
//errStr: 'error.minChar',
|
||||
});
|
||||
|
||||
/*
|
||||
AccountsTemplates.addField({
|
||||
_id: "username_and_email",
|
||||
type: "text",
|
||||
displayName: "Name or Email",
|
||||
placeholder: "name or email",
|
||||
});
|
||||
*/
|
||||
AccountsTemplates.addField({
|
||||
_id: "username_and_email",
|
||||
type: "text",
|
||||
displayName: "Name or Email",
|
||||
placeholder: "name or email",
|
||||
});
|
||||
*/
|
||||
|
||||
|
||||
//Routes
|
||||
AccountsTemplates.configureRoute("signIn");
|
||||
AccountsTemplates.configureRoute("signUp", {redirect: "/"});
|
||||
AccountsTemplates.configureRoute("forgotPwd", {redirect: "/"});
|
||||
AccountsTemplates.configureRoute("resetPwd", {redirect: "/"});
|
||||
AccountsTemplates.configureRoute("signUp");
|
||||
AccountsTemplates.configureRoute("forgotPwd");
|
||||
AccountsTemplates.configureRoute("resetPwd");
|
||||
//AccountsTemplates.configureRoute("changePwd");
|
||||
//AccountsTemplates.configureRoute("enrollAccount");
|
||||
//AccountsTemplates.configureRoute("verifyEmail");
|
||||
|
@ -62,17 +62,17 @@ AccountsTemplates.configure({
|
|||
negativeFeedback: false,
|
||||
positiveFeedback: false,
|
||||
negativeValidation: true,
|
||||
positiveValidation: true,
|
||||
/*
|
||||
sendVerificationEmail: true,
|
||||
continuousValidation: false,
|
||||
showLabels: true,
|
||||
forbidClientAccountCreation: false,
|
||||
formValidationFeedback: true,
|
||||
homeRoutePath: "/",
|
||||
showAddRemoveServices: false,
|
||||
showPlaceholders: true,
|
||||
*/
|
||||
positiveValidation: true
|
||||
/*
|
||||
sendVerificationEmail: true,
|
||||
continuousValidation: false,
|
||||
showLabels: true,
|
||||
forbidClientAccountCreation: false,
|
||||
formValidationFeedback: true,
|
||||
homeRoutePath: "/",
|
||||
showAddRemoveServices: false,
|
||||
showPlaceholders: true,
|
||||
*/
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue