mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 17:36:22 +08:00
Primary is a more appropriate color here than "danger". Authorizing is important, but we usually use "danger" for destructive actions and nothing is being destroyed here.
9 lines
426 B
Text
9 lines
426 B
Text
<h1><%= t("user_api_key.otp_description", application_name: @application_name) %></h1>
|
|
<div class='authorize-api-key'>
|
|
<%= form_tag(user_api_key_otp_path) do %>
|
|
<%= hidden_field_tag 'application_name', @application_name %>
|
|
<%= hidden_field_tag 'public_key', @public_key%>
|
|
<%= hidden_field_tag('auth_redirect', @auth_redirect) %>
|
|
<%= submit_tag t('user_api_key.authorize'), class: 'btn btn-primary' %>
|
|
<% end %>
|
|
</div>
|