Skip to content

signed_id cannot be secure for confirmation_email #54

@lazaronixon

Description

@lazaronixon

@user = User.find_signed(params[:confirmation_token], purpose: :confirm_email)

The user will receive a confirmation token, with this token he can validate any further email. I solved it by setting the email as purpose, so that token is valid only for that email.

@user = User.find_signed(params[:confirmation_token], purpose: "verify_#{params[:email]}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions