Hey guys, I'm having issues detecting the POST params. Unfortunately the issue is different than #156.
Here is the problem:
# config/initializers/rack-attack.rb
class Rack::Attack
blacklist('...') do |req|
# set pry session here, see below
end
end
Do a POST on a Rails route with some params and pry stops inside the blacklist block:
[1] pry(Rack::Attack)> req.env["action_dispatch.request.request_parameters"]
=> {"email"=>"foo@gmail.com", "password"=>"pasdasda"}
[2] pry(Rack::Attack)> req.params
=> {}
As you can see req.env has the request params, but the same are not present on #params. Am I missing something out?
Thanks in advance,
Pedro
Hey guys, I'm having issues detecting the POST params. Unfortunately the issue is different than #156.
Here is the problem:
Do a POST on a Rails route with some params and pry stops inside the blacklist block:
As you can see
req.envhas the request params, but the same are not present on#params. Am I missing something out?Thanks in advance,
Pedro