Created
June 23, 2020 00:26
-
-
Save 123ish/ac75c05032b62b1e197c4615cc61464d to your computer and use it in GitHub Desktop.
How to implement two-factor authentication for Rails app by using Devise gem, Google authenticator, and ActiveModel::Otp gem: activate_2fa.html.erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# /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