diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-02-22 00:17:23 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-03-06 17:41:25 +0300 |
commit | 2ff139ddee49dca7109b9f547e54c6e472c7195b (patch) | |
tree | 101b2d8553f311dc4eab9ca54c374e68ec48b3a0 /app/controllers/application_controller.rb | |
parent | 0ef8a643489ad1a3da4431155326f0a6e206d870 (diff) |
Make Warden set_user hook validate user ip uniquness
+ rename shared context
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0d3ee4f4c1f..1c66c530cd2 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -41,7 +41,7 @@ class ApplicationController < ActionController::Base end rescue_from Gitlab::Auth::TooManyIps do |e| - head :forbidden, retry_after: UniqueIpsLimiter.config.unique_ips_limit_time_window + head :forbidden, retry_after: Gitlab::Auth::UniqueIpsLimiter.config.unique_ips_limit_time_window end def redirect_back_or_default(default: root_path, options: {}) |