diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-02-17 14:52:27 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-03-06 17:41:25 +0300 |
commit | 8993801f0cefdc64b46b8fe30622cc78eaa03173 (patch) | |
tree | f9a9a38c91e99f03ea87978119a03538d1e91175 /lib/gitlab/auth.rb | |
parent | 66dc71599cb698d380e14be7230ae3495c78d266 (diff) |
Test various login scenarios if the limit gets enforced
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 be055080853..8e2aee2d7a0 100644 --- a/lib/gitlab/auth.rb +++ b/lib/gitlab/auth.rb @@ -22,7 +22,7 @@ module Gitlab user_with_password_for_git(login, password) || Gitlab::Auth::Result.new - Gitlab::Auth::UniqueIpsLimiter.limit_user! { result.actor } + Gitlab::Auth::UniqueIpsLimiter.limit_user!(result.actor) rate_limit!(ip, success: result.success?, login: login) |