Sha256: ebad2ea5cd096cd282f95cb130ccb0d0590bd78a1b46e5bb81e1166c1a2ee026
Contents?: true
Size: 1.08 KB
Versions: 23
Compression:
Stored size: 1.08 KB
Contents
<%= render "layouts/koi/navigation_header" %> <%= form_with( model: admin_user, url: admin_session_path, data: { controller: "webauthn-authentication", webauthn_authentication_options_value: { publicKey: webauthn_auth_options }, }, ) do |f| %> <% unless flash.empty? %> <div class="govuk-error-summary"> <ul class="govuk-error-summary__list"> <% flash.each do |_, message| %> <%= tag.li message %> <% end %> </ul> </div> <% end %> <%= f.govuk_fieldset legend: nil do %> <%= f.govuk_email_field :email, autofocus: true, autocomplete: "email" %> <%= f.govuk_password_field :password, autocomplete: "current-password" %> <%= f.hidden_field :response, data: { webauthn_authentication_target: "response" } %> <% end %> <div class="actions-group"> <%= f.admin_save "Log in" %> <%= f.button "🔑", type: :button, class: "button button--secondary", data: { action: "webauthn-authentication#authenticate" } %> </div> <%= govuk_formbuilder_init %> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems