debian-mirror-gitlab/config/initializers/warden.rb

10 lines
275 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
Rails.application.configure do |config|
Warden::Manager.after_set_user do |user, auth, opts|
Gitlab::Auth::UniqueIpsLimiter.limit_user!(user)
end
2018-03-17 18:26:18 +05:30
Warden::Manager.before_failure do |env, opts|
Gitlab::Auth::BlockedUserTracker.log_if_user_blocked(env)
end
2017-08-17 22:00:37 +05:30
end