Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not forward on successful registration #21

Open
derwaldgeist opened this issue Oct 1, 2019 · 4 comments
Open

Does not forward on successful registration #21

derwaldgeist opened this issue Oct 1, 2019 · 4 comments

Comments

@derwaldgeist
Copy link

I'm still having troubles setting routing up correctly.

If the user successfully logs in or out, there is no automatic forward to another page. I managed to workaround this for logins by setting the onLoginHook.

However, there is no equivalent onRegisterHook.

So, I am scratching my head how I can automatically forward the user in this case?

@derwaldgeist
Copy link
Author

Kinda solved it now by reacting on a redux state change, but still: it's weird this package doesn't do a forward on registration automatically.

@leoncvlt
Copy link

+1 on this. The demo at https://react-accounts-demo.herokuapp.com/ seems to handle this just fine - I checked the source code and there doesn't seem to be any redirect / hookup magic yet the post-login / signup / logout forwarding works out of the box - which is not the case when installing the atmosphere package. @RoyGil ?

@rGiladi
Copy link
Owner

rGiladi commented Nov 21, 2019

Hey, I'm not working with Meteor anymore and can't keep maintaining the project..

As for your question - you can use the generic onSubmitHook (example)

@derwaldgeist
Copy link
Author

@RoyGil Sad to hear it's not maintained anymore. Are there alternatives?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants