mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-27 07:56:48 +09:00
The profile asked for the current password when the request's password field was filled in. The check now follows the save itself: the model checks the challenge whenever the password digest is about to change, and the profile always hands it the challenge. Editing a name, avatar or email without a new password still needs none, and scripts that reset a password, which set no challenge, are unaffected. Only a string counts as a challenge, and the rate limit counts every non-empty one, so what's limited is exactly what gets checked.