Skip to content

Commit

Permalink
If students click the button before JS is finished starting up React,…
Browse files Browse the repository at this point in the history
… then the link will use a GET method. Per heartcombo/devise#5236 (comment), change to a button_to to ensure that it's a POST method in all cases.
  • Loading branch information
Ben Lerner committed Nov 20, 2023
1 parent e3312b2 commit 9713565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div id="signin">
<div class="form-signin text-center">
<%= link_to "Sign in with Bottlenose", user_bottlenose_omniauth_authorize_path, class: "btn btn-primary", method: :post %>
<%= button_to "Sign in with Bottlenose", user_bottlenose_omniauth_authorize_path, class: "btn btn-primary" %>
</div>
</div>

Expand Down

0 comments on commit 9713565

Please sign in to comment.