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

Version Path
quo_vadis-2.2.4 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.2.2 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.2.1 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.2.0 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.11 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.10 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.9 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.8 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.7 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.6 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.5 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.4 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.3 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.2 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.1 app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.1.0 test/dummy/app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.0.2 test/dummy/app/views/quo_vadis/totps/new.html.erb
quo_vadis-2.0.1 test/dummy/app/views/quo_vadis/totps/new.html.erb