summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/two_factor_auths_controller.rb
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2015-12-18 18:29:13 -0200
committerGabriel Mazetto <gabriel@gitlab.com>2015-12-24 19:00:18 -0200
commit33964469b38e2b36b200b20fe3061371a5f5ab18 (patch)
tree72a4eaae98645d02803cd212d871dd22d9fca53d /app/controllers/profiles/two_factor_auths_controller.rb
parent7b25da74ea017814c3f420bd57470af483617d4f (diff)
downloadgitlab-ce-33964469b38e2b36b200b20fe3061371a5f5ab18.tar.gz
WIP require two factor authentication
Diffstat (limited to 'app/controllers/profiles/two_factor_auths_controller.rb')
-rw-r--r--app/controllers/profiles/two_factor_auths_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/profiles/two_factor_auths_controller.rb b/app/controllers/profiles/two_factor_auths_controller.rb
index e6b99be37fb..05c84fb720e 100644
--- a/app/controllers/profiles/two_factor_auths_controller.rb
+++ b/app/controllers/profiles/two_factor_auths_controller.rb
@@ -1,4 +1,6 @@
class Profiles::TwoFactorAuthsController < Profiles::ApplicationController
+ skip_before_action :check_tfa_requirement
+
def new
unless current_user.otp_secret
current_user.otp_secret = User.generate_otp_secret(32)