diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 12:10:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 12:10:09 +0300 |
commit | 1930898566965dbc1bd779089ec9e58e17674268 (patch) | |
tree | a1e4384e4e8927431b637daa885dc8793cbb0035 /lib/gitlab/auth.rb | |
parent | 2691cff8296517651e4bcd8adac09640f8cc28f5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r-- | lib/gitlab/auth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb index 3967c0df9b3..0877a31e0f9 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -394,7 +394,7 @@ module Gitlab end def user_auth_attempt!(user, success:) - return unless user && Gitlab::Database.main.read_write? + return unless user && Gitlab::Database.read_write? return user.unlock_access! if success user.increment_failed_attempts! |