Sha256: 84d6feda51f6759a21d0b09ca3896cfd409580fe2abdd4b16a425c732e158c41

Contents?: true

Size: 870 Bytes

Versions: 5

Compression:

Stored size: 870 Bytes

Contents

<%%= form_tag <%= rodauth %>.webauthn_remove_path, method: :post, id: "webauthn-remove-form" do %>
  <%%= render "password_field" if <%= rodauth %>.two_factor_modifications_require_password? %>
  <fieldset class="form-group mb-3">
    <%% (usage = <%= rodauth %>.account_webauthn_usage).each do |id, last_use| %>
      <div class="form-check">
        <%%= render "field", name: <%= rodauth %>.webauthn_remove_param, id: "webauthn-remove-#{id}", type: :radio, class: "form-check-input", skip_error_message: true, value: id, required: false %>
        <%%= label_tag "webauthn-remove-#{id}", "Last use: #{last_use}", class: "form-check-label" %>
        <%%= render "field_error", name: <%= rodauth %>.webauthn_remove_param if id == usage.keys.last %>
      </div>
    <%% end %>
  </fieldset>
  <%%= render "submit", value: "Remove WebAuthn Authenticator" %>
<%% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rodauth-rails-0.17.1 lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb
rodauth-rails-0.17.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb
rodauth-rails-0.16.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb
rodauth-rails-0.15.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb
rodauth-rails-0.14.0 lib/generators/rodauth/templates/app/views/rodauth/webauthn_remove.html.erb