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:
authorEtienne BaquƩ <ebaque@gitlab.com>2019-07-19 20:44:30 +0300
committerStan Hu <stanhu@gmail.com>2019-08-27 05:39:48 +0300
commit84d6dcbe5040b9f0475f6b2155800617e397db94 (patch)
treeef11e13dc897795a74b8824c2bf0096ce1ed4ecc /lib/gitlab/auth.rb
parenta6b60fee67f6ea4d22ab5cb34901d0707829eec0 (diff)
Updated call to find deploy token
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r--lib/gitlab/auth.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/auth.rb b/lib/gitlab/auth.rb
index e17a096ef19..fe40d553b2f 100644
--- a/lib/gitlab/auth.rb
+++ b/lib/gitlab/auth.rb
@@ -202,8 +202,7 @@ module Gitlab
def deploy_token_check(login, password)
return unless password.present?
- token =
- DeployToken.active.find_by(token: password)
+ token = DeployToken.active.find_by_token(password)
return unless token && login
return if login != token.username