@ -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 == "/account/password" && request.post?
if request.params["user"].present? && request.path == user_password_path && request.post?
request.params["user"]["email"].to_s.downcase.gsub(/\s+/, "")