Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(confirmation): make strong params match #1559

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BirkhoffLee
Copy link

This fixes #1558

@@ -71,7 +71,7 @@ def render_not_found_error
private

def resource_params
params.permit(:email, :confirmation_token, :config_name)
params.permit(:email, :confirmation_token, :config_name, :redirect_url)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you didn't change the redirect_url definition in order to this change to make sense

@@ -2,4 +2,4 @@

<p><%= t '.confirm_link_msg' %> </p>

<p><%= link_to t('.confirm_account_link'), confirmation_url(@resource, {confirmation_token: @token, config: message['client-config'].to_s, redirect_url: message['redirect-url']}).html_safe %></p>
<p><%= link_to t('.confirm_account_link'), confirmation_url(@resource, {confirmation_token: @token, config_name: message['client-config'].to_s, redirect_url: message['redirect-url']}).html_safe %></p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah makes sense, can you add a spec to cover this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants