identity
identity copied to clipboard
Password reset flow does not work if previously logged in with a different email
Steps to reproduce
-
Setup [email protected] account
-
Login as [email protected]
-
Logout
-
Reset password for [email protected] account
-
No reset is sent!
-
Lookup the password reset hash in api:
User['[email protected]'].reset_password_hash > 2cc7e6ef2e0f02afb9c35b0be5a29bc8 -
Go to https://id.heroku.com/account/password/reset/2cc7e6ef2e0f02afb9c35b0be5a29bc8
-
Reset password
-
Reset is successful, but you are redirected to the login form with
[email protected]prefilled, not[email protected] -
Logging in with the new password for
[email protected]works.
This issue was discovered because of a support ticket: https://support.heroku.com/tickets/357431
@dmcinnes or @adelcambre any ideas on this one?
The login prefill is almost certatingly coming from autocomplete on the user's browser since we don't keep track of or set a default value: https://github.com/heroku/identity/blob/master/views/login.slim#L21 The no email sent is weird though, we can check our mail logs to see what happened to it...