This diff updates the password reset system to work with the encrypted usernames/optional emails introduced in #444.
Test Plan
Running on my dev environment:
This was in dev mode, so the email wasn't actually sent, but we can see that it selected the correct user to send the email to. No modification was needed to only use the email given by the user instead of pulling from the database, as Django already does that. To verify this, I cleared the email field on my user record, and did this test.
Summary
This diff updates the password reset system to work with the encrypted usernames/optional emails introduced in #444.
Test Plan
Running on my dev environment:
This was in dev mode, so the email wasn't actually sent, but we can see that it selected the correct user to send the email to. No modification was needed to only use the email given by the user instead of pulling from the database, as Django already does that. To verify this, I cleared the email field on my user record, and did this test.