mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-14 17:27:58 -05:00
This solves the issue where a package might do: ``` user = User.new user.email = 'test@test.com' token = user.generate_reset_token user.save send_reset_email(token) ``` Since the save clears the reset token, the user will receive a stale token that no longer works. Closes #3774