Skip to content

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?

@MaicolBen MaicolBen closed this Jan 10, 2025
@MaicolBen MaicolBen reopened this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default URL params confirmation_instructions.html.erb conflicts with ones permitted in DeviseTokenAuth::ConfirmationsController
2 participants