mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 10:13:40 +08:00
cf60de59b1
Using the rails `form_tag` helper generates a form with the action attribute set to the current URL (without parameters). In this case, we want to include any GET parameters, so it is better to exclude the action attribute from the form tag, and allow browsers to submit to the current URL.
12 lines
446 B
Plaintext
12 lines
446 B
Plaintext
<div id='simple-container'>
|
|
<h2><%= t('login.omniauth_confirm_title', provider:(t "js.login.#{params[:provider]}.name", default: params[:provider])) %></h2>
|
|
<br/>
|
|
|
|
<form method="post">
|
|
<%= hidden_field_tag :authenticity_token, form_authenticity_token %>
|
|
<%= button_tag(type: "submit", class: "btn btn-primary") do %>
|
|
<%= SvgSprite.raw_svg('fa-plug') %><%= t 'login.omniauth_confirm_button' %>
|
|
<% end %>
|
|
</form>
|
|
</div>
|