Skip to content

Instantly share code, notes, and snippets.

@kevinhq
Created June 23, 2020 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kevinhq/59d3d5f501ca88c230385facb37bc1e2 to your computer and use it in GitHub Desktop.
Save kevinhq/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