Skip to content

Instantly share code, notes, and snippets.

@stephenmckinney
Created March 12, 2015 00:24
Show Gist options
  • Save stephenmckinney/39bdcc0b4f0d2fbe8c64 to your computer and use it in GitHub Desktop.
Save stephenmckinney/39bdcc0b4f0d2fbe8c64 to your computer and use it in GitHub Desktop.
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index f9f063c..5a995e2 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -13,6 +13,12 @@ class AccountController < ApplicationController
prepend_network_view_paths!
+ def foo
+ respond_to do |format|
+ format.html { render :action => 'two_factor_authentication' }
+ end
+ end
+
def xrds
request.format = :xml
response.headers['Content-Type'] = 'application/xrds+xml'
diff --git a/app/views/account/two_factor_authentication.erb b/app/views/account/two_factor_authentication.erb
index 8a69c8f..d682237 100644
--- a/app/views/account/two_factor_authentication.erb
+++ b/app/views/account/two_factor_authentication.erb
@@ -1,7 +1,4 @@
<h2>Two-Factor Authentication</h2>
-<p>
- <%= current_user.username %>, please enter the verification code generated by your Authenticator app to finish logging in.
-</p>
<%= form_tag(https_url_for_opts) do %>
<%= label_tag "verification_code" %>
<%= text_field_tag "verification_code" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment