Merge remote-tracking branch 'origin/master' into merge-upstream

Conflicts:
	db/schema.rb
This commit is contained in:
David Yip
2018-01-09 14:16:45 -06:00
7 changed files with 167 additions and 7 deletions

View File

@ -53,7 +53,7 @@ class Rack::Attack
req.ip if req.api_request?
end
throttle('protected_paths', limit: 5, period: 5.minutes) do |req|
throttle('protected_paths', limit: 25, period: 5.minutes) do |req|
req.ip if req.post? && req.path =~ PROTECTED_PATHS_REGEX
end