Sha256: 9186771d3ae5f4fe68eb04841e9c3c131ed4ee4c7c3a9c15a5d33fa394fa9f7e

Contents?: true

Size: 932 Bytes

Versions: 5

Compression:

Stored size: 932 Bytes

Contents

<%%= form_tag <%= rodauth %>.otp_setup_path, method: :post do %>
  <%%= hidden_field_tag <%= rodauth %>.otp_setup_param, <%= rodauth %>.otp_user_key, id: "otp-key" %>
  <%%= hidden_field_tag <%= rodauth %>.otp_setup_raw_param, <%= rodauth %>.otp_key, id: "otp-hmac-secret" if <%= rodauth %>.otp_keys_use_hmac? %>

  <div class="form-group mb-3">
    <p>Secret: <%%= <%= rodauth %>.otp_user_key %></p>
    <p>Provisioning URL: <%%= <%= rodauth %>.otp_provisioning_uri %></p>
  </div>

  <div class="row">
    <div class="col-lg-6 col-lg">
      <div class="form-group mb-3">
        <p><%%= <%= rodauth %>.otp_qr_code.html_safe %></p>
      </div>
    </div>

    <div class="col-lg-6 col-lg">
      <%%= render "password_field" if <%= rodauth %>.two_factor_modifications_require_password? %>
      <%%= render "otp_auth_code_field" %>
      <%%= render "submit", value: "Setup TOTP Authentication" %>
    </div>
  </div>
<%% 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/otp_setup.html.erb
rodauth-rails-0.17.0 lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb
rodauth-rails-0.16.0 lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb
rodauth-rails-0.15.0 lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb
rodauth-rails-0.14.0 lib/generators/rodauth/templates/app/views/rodauth/otp_setup.html.erb