feat: implement password authentication
This commit is contained in:
parent
498ecdf68b
commit
62a329aebd
5 changed files with 55 additions and 5 deletions
|
@ -1,9 +1,19 @@
|
|||
<div id="public_id" data-content="<%= @instance.public_id %>"></div>
|
||||
<div hx-get="" hx-trigger="every 30s" hx-swap="innerHTML" hx-target="this">
|
||||
<div hx-get="" hx-trigger="every 30s" hx-swap="innerHTML" hx-select="#nm-list" hx-target="#nm-list">
|
||||
<header>
|
||||
<%= link_to root_path do %><img src="/icon.png" width="50" alt="eureka.coffee logo" /><% end %>
|
||||
<h1><span class="muted">instance</span> <%= @instance.name %></h1>
|
||||
<%= render partial: "zone_img", locals: { zone: @instance.zone, alt: @instance.zone, title: @instance.zone.upcase_first } %>
|
||||
<div class="needs_pwd">
|
||||
password: <span id="password">???</span>
|
||||
</div>
|
||||
<div class="no_pwd">
|
||||
<%= form_with url: authenticate_to_instance_path do |form| %>
|
||||
<%= form.text_field :password, placeholder: "enter password..." %>
|
||||
<%= form.hidden_field :instance, value: @instance.public_id %>
|
||||
<%= form.submit "submit" %>
|
||||
<% end %>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<%= render partial: "list", locals: { instance: @instance } %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue