Sha256: 44aaa3c12a5aa75d96fb277f680b5b8464b5c525825a19778693aaf0109639fc

Contents?: true

Size: 527 Bytes

Versions: 3

Compression:

Stored size: 527 Bytes

Contents

<%%= form_tag rodauth.otp_auth_path, method: :post do %>
  <%%= render "otp_auth_code_field" %>
  <%%= render "submit", value: "Authenticate Using TOTP" %>
<%% end %>
<% if Rodauth::MAJOR == 1 -%>

<%% if rodauth.features.include?(:sms_codes) && rodauth.sms_available? %>
  <p><%%= link_to "Authenticate using SMS code", rodauth.sms_request_path %></p>
<%% end %>
<%% if rodauth.features.include?(:recovery_codes) %>
  <p><%%= link_to "Authenticate using recovery code", rodauth.recovery_auth_path %></p>
<%% end %>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rodauth-rails-0.1.3 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-0.1.2 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb
rodauth-rails-0.1.1 lib/generators/rodauth/templates/app/views/rodauth/otp_auth.html.erb