add Gem rack_attack for prevent attack brute-force

This commit is contained in:
pedong 2019-07-03 15:22:31 +02:00 committed by simon lehericey
parent cab5b5cd9b
commit fc8cebd78d
4 changed files with 26 additions and 0 deletions

View file

@ -41,5 +41,6 @@ module TPS
end
config.ds_weekly_overview = ENV['APP_NAME'] == 'tps'
config.middleware.use Rack::Attack
end
end