mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 19:55:33 +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.
10 lines
426 B
Plaintext
10 lines
426 B
Plaintext
<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>
|