Skip to content

Instantly share code, notes, and snippets.

@123ish
Forked from kevinhq/activate_2fa.html.erb
Created June 24, 2020 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 123ish/b3737bfe49bd72a27dca098a018567a3 to your computer and use it in GitHub Desktop.
Save 123ish/b3737bfe49bd72a27dca098a018567a3 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