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 'app/models/concerns/require_email_verification.rb')
-rw-r--r--app/models/concerns/require_email_verification.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/concerns/require_email_verification.rb b/app/models/concerns/require_email_verification.rb
index d7182778b36..6581928f637 100644
--- a/app/models/concerns/require_email_verification.rb
+++ b/app/models/concerns/require_email_verification.rb
@@ -7,10 +7,7 @@ module RequireEmailVerification
extend ActiveSupport::Concern
include Gitlab::Utils::StrongMemoize
- # This value is twice the amount we want it to be, because due to a bug in the devise-two-factor
- # gem every failed login attempt increments the value of failed_attempts by 2 instead of 1.
- # See: https://github.com/tinfoil/devise-two-factor/issues/127
- MAXIMUM_ATTEMPTS = 3 * 2
+ MAXIMUM_ATTEMPTS = 3
UNLOCK_IN = 24.hours
included do