GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
added ability to override redirect_to path after sending reset passwo…
Thanks for your pull request! Could you please include tests as well? :D
+1 for this feature, we had to hax around this a little for our app.
Merge pull request #1067 from naomik/master
added ability to override redirect_to path after sending reset password instructions
Can you add this to the application controller to override like after_sign_in_path_for? Or must I extend the password controller?
You must extend the controller.
Would it be possible to make after_sending_reset_password_instructions_path_for like after_sign_in_path_for? Therefore, you only need to set that in the application controller?
No, because sign in is a concern that spreads throughout the application.
You can sign in through an specific controller (SessionsController) or
through an API, cookie (which then happens in any controller), etc. The
reset password hook is specific to the passwords controller though.