Skip to content

Commit

Permalink
Fix to not send authenticity token when form_post
Browse files Browse the repository at this point in the history
  • Loading branch information
nhosoya committed May 18, 2021
1 parent 1a81b2d commit 78befeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/doorkeeper/authorizations/form_post.html.erb
Expand Up @@ -2,7 +2,7 @@
<h1><%= t('.title') %></h1>
</header>

<%= form_tag @pre_auth.redirect_uri, method: :post, name: :redirect_form do %>
<%= form_tag @pre_auth.redirect_uri, method: :post, name: :redirect_form, authenticity_token: false do %>
<% @authorize_response.body.compact.each do |key, value| %>
<%= hidden_field_tag key, value %>
<% end %>
Expand Down

0 comments on commit 78befeb

Please sign in to comment.