project-callisto / callisto-core

Report intake, escrow, matching and secure delivery code for Callisto, an online reporting system for sexual assault.
https://www.projectcallisto.org
GNU Affero General Public License v3.0
137 stars 54 forks source link

Change password reset form to work with encrypted usernames. #445

Closed gaylatea closed 5 years ago

gaylatea commented 5 years ago

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: Screen Shot 2019-06-18 at 4 55 34 PM

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.