Skip to content

Instantly share code, notes, and snippets.

@imrubyist
Created June 23, 2020 11:43
Show Gist options
  • Save imrubyist/59d3d5f501ca88c230385facb37bc1e2 to your computer and use it in GitHub Desktop.
Save imrubyist/59d3d5f501ca88c230385facb37bc1e2 to your computer and use it in GitHub Desktop.
Two-Factor authentication form with QR code
<# /app/views/users/activate_2fa.html.erb %>
<%= @svg.html_safe %>
<%= form_for(@user, url: activate_2fa_update_path) do |f| %>
<%= f.text_field :otp_response_code %>
<%= f.submit %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment