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
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-12 06:10:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-12 06:10:28 +0300
commite8a7b1cd3fcab8b3e0679c50f483ba131f76d42d (patch)
treed0e5135afa018095c9af68fb949745a0fbe24663 /lib
parentfaedfbb4733019a8c802af115a29f67ff9c8fdae (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/auth.rb4
-rw-r--r--lib/gitlab/auth/auth_finders.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb
index 6c3487c28ea..6213dd203c4 100644
--- a/lib/gitlab/auth.rb
+++ b/lib/gitlab/auth.rb
@@ -92,7 +92,7 @@ module Gitlab
return unless authenticate_using_internal_or_ldap_password?
Gitlab::Auth::UniqueIpsLimiter.limit_user! do
- user = User.by_login(login)
+ user = User.find_by_login(login)
break if user && !user.can_log_in_with_non_expired_password?
@@ -279,7 +279,7 @@ module Gitlab
if deploy_key_matches
DeployKey.find(deploy_key_matches[1])
else
- User.by_login(login)
+ User.find_by_login(login)
end
return unless actor
diff --git a/lib/gitlab/auth/auth_finders.rb b/lib/gitlab/auth/auth_finders.rb
index 7adaaef86e4..c994f179b66 100644
--- a/lib/gitlab/auth/auth_finders.rb
+++ b/lib/gitlab/auth/auth_finders.rb
@@ -103,7 +103,7 @@ module Gitlab
return unless has_basic_credentials?(current_request)
login, token = user_name_and_password(current_request)
- user = User.by_login(login)
+ user = User.find_by_login(login)
user if user && Gitlab::LfsToken.new(user).token_valid?(token)
end