Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/api_guard.rb')
-rw-r--r--lib/api/api_guard.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/api_guard.rb b/lib/api/api_guard.rb
index 0aee0c70203..7033856a42e 100644
--- a/lib/api/api_guard.rb
+++ b/lib/api/api_guard.rb
@@ -128,7 +128,7 @@ module API
end
def two_factor_required_but_not_setup?(user)
- verifier = Gitlab::Auth::TwoFactorAuthVerifier.new(user)
+ verifier = Gitlab::Auth::TwoFactorAuthVerifier.new(user, request)
if verifier.two_factor_authentication_required? && verifier.current_user_needs_to_setup_two_factor?
verifier.two_factor_grace_period_expired?