Files
docuseal/app/views/mfa_setup/_form.html.erb
T

18 lines
735 B
Plaintext
Raw Normal View History

<%= form_for '', url: mfa_setup_path, data: { turbo_frame: :_top }, html: { id: 'mfa_form' } do |f| %>
2023-12-02 01:50:54 +02:00
<p class="text-center">
2024-09-18 19:47:47 +03:00
<%= t('use_an_authenticator_mobile_app_like_google_authenticator_or_1password_to_scan_the_qr_code_below') %>
2023-12-02 01:50:54 +02:00
</p>
<div>
2024-01-20 17:24:19 +02:00
<%== RQRCode::QRCode.new(@provision_url).as_svg(viewbox: true, svg_attributes: { class: 'md:w-80 md:h-80 my-4 mx-auto' }) %>
2023-12-02 01:50:54 +02:00
</div>
<div class="form-control my-6 space-y-2">
<%= f.text_field :otp_attempt, required: true, placeholder: 'XXX-XXX', class: 'base-input text-center' %>
<span>
<%= @error_message %>
</span>
</div>
<div class="form-control mt-4">
2024-09-18 19:47:47 +03:00
<%= f.button button_title(title: t('save')), class: 'base-button' %>
2023-12-02 01:50:54 +02:00
</div>
<% end %>