Sha256: 20650a663a3fe9b4609c4276105451eeb528213b72140da67b250546df558421

Contents?: true

Size: 1.11 KB

Versions: 12

Compression:

Stored size: 1.11 KB

Contents

<% content_for :title, rodauth.recovery_codes_page_title %>

<%= form_with url: rodauth.recovery_codes_path, method: :post, data: { turbo: false } do |form| %>
  <% if rodauth.two_factor_modifications_require_password? %>
    <div class="form-group mb-3">
      <%= form.label "password", rodauth.password_label, class: "form-label" %>
      <%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
      <%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>
    </div>
  <% end %>

  <div class="form-group mb-3">
    <%= form.submit rodauth.recovery_codes_button || rodauth.view_recovery_codes_button, name: (rodauth.add_recovery_codes_param if rodauth.recovery_codes_button), class: "btn btn-primary" %>
  </div>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rodauth-rails-1.4.2 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.4.1 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.4.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.3.1 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.3.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.2.2 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.2.1 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.2.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.1.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-1.0.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-0.18.1 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb
rodauth-rails-0.18.0 lib/generators/rodauth/templates/app/views/rodauth/recovery_codes.html.erb