anexia-it / django-rest-passwordreset

An extension of django rest framework, providing a configurable password reset strategy
BSD 3-Clause "New" or "Revised" License
419 stars 148 forks source link

Update views.py #190

Open haradhansharma opened 3 months ago

haradhansharma commented 3 months ago

instance should have in the post password reset

nezhar commented 2 months ago

@haradhansharma can you explain what is your use case for this?

haradhansharma commented 2 months ago

If we want to sent mail about password change the request would be needed and without instance we can not access request of the API view. SImilarly pre_passowrd_reset should have instance like you are passing in password_reset_token_created