diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2018-03-01 19:28:15 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-03-01 19:28:15 +0300 |
commit | 9e852340fb2effbe7bc502026e99d374775747d3 (patch) | |
tree | e3378c8b7f706263a6808334a409925315d88f84 /app/controllers/profiles | |
parent | c37cbb3125d5c1542371ff72c5ec7d76e3d2261b (diff) |
Removing the two factor check when the user sets a new password
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/passwords_controller.rb | 1 |
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! |