The main password reset form on /auth/preferences (different a forced change due to password expired) needs to reset the token.
Also I think deleting an email address should clear the reset token, not only for adding a new address. (E.g. if you have multiple addresses recorded already and just remove a compromised one).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The main password reset form on /auth/preferences (different a forced change due to password expired) needs to reset the token.
Also I think deleting an email address should clear the reset token, not only for adding a new address. (E.g. if you have multiple addresses recorded already and just remove a compromised one).
Good point. I updated hs/7786 with those changes.
Good point. I updated hs/7786 with those changes.
Getting there. It still doesn't get cleared out after a regular password change on
/auth/preferences/
.Got it :)
I also wrote a test for resetting passwords via /auth/preferences.