Sha256: 740c87ebb6b7592f852b33e9435af55f57ceffbdd6354cd82f69fef719812a44

Contents?: true

Size: 720 Bytes

Versions: 5

Compression:

Stored size: 720 Bytes

Contents

<%% if <%= rodauth %>.two_factor_setup_links.any? %>
  <h2>Setup Multifactor Authentication</h2>

  <ul>
    <%% <%= rodauth %>.two_factor_setup_links.sort.each do |_, link, text| %>
      <li><%%= link_to text, link %></li>
    <%% end %>
  </ul>
<%% end %>

<%% if <%= rodauth %>.two_factor_remove_links.any? %>
  <h2>Remove Multifactor Authentication</h2>

  <ul>
    <%% <%= rodauth %>.two_factor_remove_links.sort.each do |_, link, text| %>
      <li><%%= link_to text, link %></li>
    <%% end %>
    <%% if <%= rodauth %>.two_factor_remove_links.length > 1 %>
      <li><%%= link_to "Remove All Multifactor Authentication Methods", <%= rodauth %>.two_factor_disable_path %></li>
    <%% end %>
  </ul>
<%% 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/two_factor_manage.html.erb
rodauth-rails-0.17.0 lib/generators/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb
rodauth-rails-0.16.0 lib/generators/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb
rodauth-rails-0.15.0 lib/generators/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb
rodauth-rails-0.14.0 lib/generators/rodauth/templates/app/views/rodauth/two_factor_manage.html.erb