You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bind the registration confirmation token to the address it was mailed to
owner_email stays editable after the confirmation link goes out, and
clean_params deep-merges, so the token survived an address change - which
let a registrant point their own link at someone else's account and be
signed in as them. The token now records the address it was minted for and
reads as absent for any other, so the next send mints a fresh one.
Also from the review:
- Confirm an existing unconfirmed account, like sign_in_with_magic_link
does. Without it the auth cookie was set for a user current_user won't
resolve, so the registrant got "Logged in!" and then
please_confirm_email, with the single-use token already spent.
- flash[:notice] rather than flash[:info], which isn't a
UI::Alerts::Base::Component kind (it raised when rendered).
- bin/rake prepare_translations, for the i18n normalization spec.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments