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

[FEATURE] Send token instance in pre_password_reset and post_password_reset signals #154

Closed
mikicz opened this issue Oct 22, 2021 · 0 comments · Fixed by #169
Closed

[FEATURE] Send token instance in pre_password_reset and post_password_reset signals #154

mikicz opened this issue Oct 22, 2021 · 0 comments · Fixed by #169

Comments

@mikicz
Copy link

mikicz commented Oct 22, 2021

Is your feature request related to a problem? Please describe.

I'd like to log resetting passwords and was able to achieve log requesting tokens using reset_password_token_created signal, however I am unable to log specific tokens being used to reset password without overriding ResetPasswordConfirm because the signals pre_password_reset and post_password_reset are only sending the user instance, not the token instance. I can catch a reset being successful, but can't tell which token was used if there are multiple available.

Describe the solution you'd like

Add the reset_password_token instance to the signal calls for pre_password_reset and post_password_reset.

Describe alternatives you've considered

Currently solved the issue by overriding the class and adding the signal myself in my code - however this is not ideal because I have to check on each upgrade of the library that the class hasn't changed.

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

Successfully merging a pull request may close this issue.

1 participant