accounts-react icon indicating copy to clipboard operation
accounts-react copied to clipboard

Does not forward on successful registration

Open derwaldgeist opened this issue 6 years ago • 4 comments

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 avatar Oct 01 '19 09:10 derwaldgeist

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.

derwaldgeist avatar Oct 01 '19 19:10 derwaldgeist

+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 ?

leoncvlt avatar Nov 21 '19 19:11 leoncvlt

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)

rGiladi avatar Nov 21 '19 23:11 rGiladi

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

derwaldgeist avatar Jan 02 '20 22:01 derwaldgeist