diff options
author | Etienne BaquƩ <ebaque@gitlab.com> | 2019-07-19 20:44:30 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-27 05:39:48 +0300 |
commit | 84d6dcbe5040b9f0475f6b2155800617e397db94 (patch) | |
tree | ef11e13dc897795a74b8824c2bf0096ce1ed4ecc /lib/gitlab/auth.rb | |
parent | a6b60fee67f6ea4d22ab5cb34901d0707829eec0 (diff) |
Updated call to find deploy token
Diffstat (limited to 'lib/gitlab/auth.rb')
-rw-r--r-- | lib/gitlab/auth.rb | 3 |
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 |