summaryrefslogtreecommitdiff
path: root/config/initializers/warden.rb
blob: 3d83fb92d5609bc234ed17f9d9333a5fb9a0e550 (plain)
1
2
3
4
5
Rails.application.configure do |config|
  Warden::Manager.after_set_user do |user, auth, opts|
    Gitlab::Auth::UniqueIpsLimiter.limit_user!(user)
  end
end