You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the 'Register' link is clicked, the register form works, and does allow the user to login. I've noticed the URL does not change to /sign-up as expected. Registering does 'work' but the notification confirming registration and to check their email to confirm is only displayed for a split second before they are sent back to the signup form.
Is this a bug or is my accounts templates setup wrong?
Here it is in case it helps :)
// Documentation: https://github.com/meteor-useraccounts/core/blob/master/Guide.md
AccountsTemplates.configure({
defaultLayout: 'auth',
defaultContentRegion: 'main',
defaultLayoutRegions: {},
// Behavior
confirmPassword: true,
enablePasswordChange: true,
sendVerificationEmail: true,
// WARNING - see docs, this may not work with federated logins
enforceEmailVerification: true,
focusFirstInput: true,
// Appearance
showForgotPasswordLink: true,
showResendVerificationEmailLink: true,
// Client-side Validation
continuousValidation: true,
// Redirects
//homeRoutePath: 'login',
// Hooks
onLogoutHook: function () {
FlowRouter.go('login');
},
// Text
texts: {
title: {
resendVerificationEmail: "Enter you email below and we'll resend your verification email",
}
}
});
AccountsTemplates.addField({
_id: 'username',
'displayName': 'Display Name',
type: 'text',
placeholder: {
signUp: "Suitable for public display, must be unique!"
},
required: true,
minLength: 3,
re: /^[a-zA-Z0-9]+$/,
errStr: 'Username is required',
});
//Documentation: https://github.com/meteor-useraccounts/flow-routing
AccountsTemplates.configureRoute('signIn', {
name: 'login',
path: '/login'
});
AccountsTemplates.configureRoute('signUp');
AccountsTemplates.configureRoute('forgotPwd');
AccountsTemplates.configureRoute('resetPwd', {
name: 'resetPwd',
path: '/reset-password'
});
AccountsTemplates.configureRoute('changePwd', {
name: 'changePwd',
path: '/settings',
layoutTemplate: 'dashboard',
contentRegion: 'main',
layoutRegions: {},
homeRoutePath: 'home',
});
AccountsTemplates.configureRoute('verifyEmail', {
name: 'verifyEmail',
path: '/verify-email',
layoutTemplate: 'dashboard',
contentRegion: 'main',
layoutRegions: {},
homeRoutePath: 'home',
});
The text was updated successfully, but these errors were encountered:
Hello!
I have a route setup as follows:
Which redirect to /login-in:
If the 'Register' link is clicked, the register form works, and does allow the user to login. I've noticed the URL does not change to /sign-up as expected. Registering does 'work' but the notification confirming registration and to check their email to confirm is only displayed for a split second before they are sent back to the signup form.
Is this a bug or is my accounts templates setup wrong?
Here it is in case it helps :)
The text was updated successfully, but these errors were encountered: