Skip to content

Commit

Permalink
fix(confirmation): make strong params match
Browse files Browse the repository at this point in the history
Fixes #1558
  • Loading branch information
BirkhoffLee committed Oct 6, 2022
1 parent ec68e47 commit aee533d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def render_not_found_error
private

def resource_params
params.permit(:email, :confirmation_token, :config_name)
params.permit(:confirmation_token, :config_name, :redirect_url)
end

# give redirect value from params priority or fall back to default value if provided
Expand Down
2 changes: 1 addition & 1 deletion app/views/devise/mailer/confirmation_instructions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit aee533d

Please sign in to comment.