Django - customise built in django reset password system

Hello. I implement Django’s built in reset password functionality inside my project. A user enters their email and sent a login link back into an account. I want users to have the choice to also enter their username, so the email is sent to the email of the username entered.

How can I customise Django’s reset password system in order to accomplish this? Thanks.

I found this tutorial very insightful on this topic:

This tutorial does not show how to implement username functionality, thanks though.

Probably the easiest way would be to -

The details of these classes aren’t covered in any real detail in the documentation - fortunately, the code is easy enough to read that it should give you some ideas.