Looking good. Webauthn integration time!!

This commit is contained in:
2024-05-22 09:54:22 +01:00
parent 0edc7d0563
commit ba3392fb47
11 changed files with 75 additions and 92 deletions

View File

@@ -1,4 +1,4 @@
<%= form_with(model: [@domain, credential]) do |form| %>
<%= form_with(model: [@domain, credential], html: { class: "work-area"}) do |form| %>
<% if credential.errors.any? %>
<div style="color: red">
<h2><%= pluralize(credential.errors.count, "error") %> prohibited this credential from being saved:</h2>
@@ -11,17 +11,12 @@
</div>
<% end %>
<div>
<%= form.label :email, style: "display: inline" %> @<%=@domain.domain%>
<%= form.text_field :email %>
</div>
<%= form.label :email %>:<%= form.text_field :email %>@<%=@domain.domain%>
<br/>
<%= form.label :password %>:<%= form.text_field :password %>
<br/>
<div>
<%= form.label :password, style: "display: block" %>
<%= form.text_field :password %>
</div>
<div>
<%= form.submit %>
</div>
<%= form.submit "Create email" %>
<% end %>