Sha256: 17f59094b52afd8592a48a757b4af2ac75c90f21ceb08803fdfa5cfbdbafdad4
Contents?: true
Size: 524 Bytes
Versions: 18
Compression:
Stored size: 524 Bytes
Contents
<h1>2FA: TOTP setup</h1> <p>1. With your authenticator app, either scan this QR code or enter the text: <pre><%= @totp.key %></pre></p> <%== @totp.qr_code.as_svg module_size: 5 %> <p>2. Enter the 6 digit code generated by your authenticator, to check it worked:</p> <%= form_with model: @totp do |f| %> <%= f.hidden_field :key %> <%= f.hidden_field :hmac_key %> <%= f.text_field :otp, inputmode: 'decimal', autocomplete: 'one-time-code', autofocus: true, maxlength: '6' %> <%= f.submit 'Confirm' %> <% end %>
Version data entries
18 entries across 18 versions & 1 rubygems