Browse Source

Remove user_password_path because it can't be found

cldc-2812-run-app-from-relative-url
Rachael Booth 1 year ago
parent
commit
4f0e86fcf5
  1. 2
      config/initializers/rack_attack.rb

2
config/initializers/rack_attack.rb

@ -17,7 +17,7 @@ else
end
Rack::Attack.throttle("password reset requests", limit: 5, period: 60.seconds) do |request|
if request.params["user"].present? && request.path == user_password_path && request.post?
if request.params["user"].present? && request.path == "/account/password" && request.post?
request.params["user"]["email"].to_s.downcase.gsub(/\s+/, "")
end
end

Loading…
Cancel
Save