Devise: Different sign_in_after_reset_password values for different resources

Created on 16 Dec 2016  路  2Comments  路  Source: heartcombo/devise

I have two models: User and AdminUser. I want a user to be signed in after reseting password but not admin. How can I do this? This behavior is defined by one configuration option now: https://github.com/plataformatec/devise/blob/8a4d610/app/controllers/devise/passwords_controller.rb#L37 .

Most helpful comment

I am having this same issue, please support this feature

All 2 comments

Hello @roshats, thanks for your report.
This is indeed a global option. We haven't plans on supporting this for now, so although I know it's not ideal, you probably will have to override this action in order to add your custom behavior.
If this became a popular feature request we can think about supporting in a next major version.

Thank you!

I am having this same issue, please support this feature

Was this page helpful?
0 / 5 - 0 ratings