mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
Hide the API key instructions for now
This commit is contained in:
parent
6139862a30
commit
8d7cbda26a
2 changed files with 12 additions and 11 deletions
11
app/views/devise/registrations/_api_key.html.erb
Normal file
11
app/views/devise/registrations/_api_key.html.erb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<p class="py-6">
|
||||
<p class='py-2'>Use this API key to authenticate your requests.</p>
|
||||
<code><%= current_user.api_key %></code>
|
||||
<p class='py-2'>
|
||||
Usage example:
|
||||
<p><code><%= api_v1_points_url(api_key: current_user.api_key) %></code></p>
|
||||
</p>
|
||||
<p class='py-2'>
|
||||
<%= link_to "Generate new API key", generate_api_key_path, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?", turbo_method: :post }, class: 'btn btn-primary' %>
|
||||
</p>
|
||||
</p>
|
||||
|
|
@ -2,17 +2,7 @@
|
|||
<div class="hero-content flex-col lg:flex-row-reverse w-full my-10">
|
||||
<div class="text-center lg:text-left">
|
||||
<h1 class="text-5xl font-bold">Edit your account!</h1>
|
||||
<p class="py-6">
|
||||
<p class='py-2'>Use this API key to authenticate your requests.</p>
|
||||
<code><%= current_user.api_key %></code>
|
||||
<p class='py-2'>
|
||||
Usage example:
|
||||
<p><code><%= api_v1_points_url(api_key: current_user.api_key) %></code></p>
|
||||
</p>
|
||||
<p class='py-2'>
|
||||
<%= link_to "Generate new API key", generate_api_key_path, data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?", turbo_method: :post }, class: 'btn btn-primary' %>
|
||||
</p>
|
||||
</p>
|
||||
<%#= render 'devise/registrations/api_key' %>
|
||||
</div>
|
||||
<div class="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100 px-5 py-5">
|
||||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), class: 'form-body', html: { method: :put }) do |f| %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue