From 1273f4c9b731fddf459f468cdebc14ef1200025c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Wed, 31 Aug 2022 15:49:44 +1200 Subject: [PATCH] Allow using route method in abuse key --- app/controllers/shared/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 74be07a886..4044ca1bfb 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -83,7 +83,8 @@ App::init() ->setParam('{userId}', $user->getId()) ->setParam('{userAgent}', $request->getUserAgent('')) ->setParam('{ip}', $request->getIP()) - ->setParam('{url}', $request->getHostname() . $route->getPath()); + ->setParam('{url}', $request->getHostname() . $route->getPath()) + ->setParam('{method}', $request->getMethod()); $timeLimitArray[] = $timeLimit; }