2017-02-21 16:17:23 -05:00
|
|
|
Rails.application.configure do |config|
|
|
|
|
Warden::Manager.after_set_user do |user, auth, opts|
|
|
|
|
Gitlab::Auth::UniqueIpsLimiter.limit_user!(user)
|
|
|
|
end
|
2018-01-15 00:10:48 -05:00
|
|
|
|
|
|
|
Warden::Manager.before_failure do |env, opts|
|
|
|
|
Gitlab::Auth::BlockedUserTracker.log_if_user_blocked(env)
|
|
|
|
end
|
2017-02-21 16:17:23 -05:00
|
|
|
end
|