summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-03-01 12:56:40 +0100
committerFrancisco Javier López <fjlopez@gitlab.com>2018-03-01 12:56:40 +0100
commit63e99d06ee222e10568cc71a0337318cf6a94a31 (patch)
tree1e852e3a42afc963f68a6ba5019388b85837603f
parent7aa9ec7aa11fee1de915a15c15b5ee164b2f51a4 (diff)
downloadgitlab-ce-fj-28141-redirection-loop.tar.gz
Removing the two factor check when the user sets a new passwordfj-28141-redirection-loop
-rw-r--r--app/controllers/profiles/passwords_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/profiles/passwords_controller.rb b/app/controllers/profiles/passwords_controller.rb
index fa72f67c77e..b8ccc6e3c99 100644
--- a/app/controllers/profiles/passwords_controller.rb
+++ b/app/controllers/profiles/passwords_controller.rb
@@ -1,5 +1,6 @@
class Profiles::PasswordsController < Profiles::ApplicationController
skip_before_action :check_password_expiration, only: [:new, :create]
+ skip_before_action :check_two_factor_requirement, only: [:new, :create]
before_action :set_user
before_action :authorize_change_password!