Closed st3phan closed 8 years ago
I think the problem is you're using your custom helper to call Meteor.loginWithPassword
.
All logic and redirects provided with useraccounts packages happens with its custom helpers: for example these lines are those using a callback to possibly redirects the user somewhere after the login.
If your signIn
template only needs to call Meteor.loginWithPassword
try to change it to match the original lines.
The thing about providing custom templates is a little more complicated and you can find some discussion about it among the issues of the core repo. For example lets have a look at This comment, but you can also read https://github.com/meteor-useraccounts/core/issues/212.
@st3phan, any update on this?
My config for a custom sign-in route:
The private route successfully redirects to the custom sign-in template using a trigger:
But after a successful login it doesn't redirect back to the '/private' route. This should be default behaviour right? Or am I missing something?
This is my sign-in template: