From e8a9122421199e4ff8546e9dd871ca49aba4624d Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 19 Oct 2025 12:25:28 +0530 Subject: [PATCH] fix: constructor --- app/controllers/api/account.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index e12c08099a..b5811c3b95 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -2807,13 +2807,13 @@ App::post('/v1/account/tokens/cli') contentType: ContentType::JSON, )) ->label('abuse-limit', 10) - ->label('abuse-key', 'url:{url},userId:{userId}') + ->label('abuse-key', 'url:{url},ip:{ip}') ->inject('request') ->inject('response') ->inject('user') ->inject('dbForProject') ->inject('proofForCode') - ->action(function (string $publicKey, string $name, Request $request, Response $response, Document $user, Database $dbForProject, ProofsCode $proofForCode) { + ->action(function (Request $request, Response $response, Document $user, Database $dbForProject, ProofsCode $proofForCode) { if ($user->isEmpty()) { throw new Exception(Exception::USER_UNAUTHORIZED); }