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
Method #after_database_authentication not called after reset_password #4841
Comments
+1 |
@bgr11n thanks for reporting this! It's a bug, indeed. We call this callback from the database authenticable's strategy here: https://github.com/plataformatec/devise/blob/master/lib/devise/strategies/database_authenticatable.rb#L15. This strategy is called on a sign-in when we call I'm happy to accept a pull request for this, it should be straightforward to do it. If you wanna tackle this, feel free to do it. Otherwise I might keep it open for newcomers. |
@tegon Is anyone working this, or can I, please? |
@kanmaniselvan I don't think so, you can take it. If you need anything while you're developing this, feel free to ask. Thanks! |
Precheck
Callback #after_database_authentication is not called after reset_password but user is authenticated and in DB
sign_in_count
is 1.Environment
Current behavior
after_database_authentication
callback is not triggered.Expected behavior
after_database_authentication
callback should be triggered.The text was updated successfully, but these errors were encountered: