Engineering / ENG-1448
Password reset links say 'expired' before people open them (mail scanners use them up)
Description
Northgate (SUP-859): reset links are "expired or already used" when people click them, minutes after the email.
Northgate's mail filter opens every link in incoming mail to scan it. Our reset link uses up the token on the GET.
Steps to reproduce
- Ask for a reset. Before clicking,
curlthe link once. - Click the link.
Expected: the reset form. Actual: "This link has expired or was already used."
Fix
GET shows the form and doesn't touch the token. The token is used only when the new password is posted.
Linked issues
- relates to SUP-859 Northgate: password reset links say 'expired' the moment people open them Done
Deployed. The welcome-email link had the same problem; fixed too.