From a18cfb16864305f5b1161b42781a845f2dac10cd Mon Sep 17 00:00:00 2001 From: nanaya Date: Thu, 3 Oct 2024 16:41:56 +0900 Subject: [PATCH 1/2] Adjust verification reissue limit --- app/Http/Controllers/AccountController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 7f99c18791c..b4c239991c4 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -59,8 +59,11 @@ public function __construct() 'updateOptions', ]]); - $this->middleware('throttle:60,10', ['only' => [ + $this->middleware('throttle:3,5', ['only' => [ 'reissueCode', + ]]); + + $this->middleware('throttle:60,10', ['only' => [ 'updateEmail', 'updatePassword', 'verify', From f6ce8d199028438a013c7002b467f90491a05102 Mon Sep 17 00:00:00 2001 From: nanaya Date: Thu, 3 Oct 2024 16:50:45 +0900 Subject: [PATCH 2/2] Update test json --- tests/api_routes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api_routes.json b/tests/api_routes.json index 37bd76de513..d1cf43ce259 100644 --- a/tests/api_routes.json +++ b/tests/api_routes.json @@ -29,7 +29,7 @@ "App\\Http\\Middleware\\RequireScopes:any", "Illuminate\\Auth\\Middleware\\Authenticate", "App\\Http\\Middleware\\VerifyUser", - "App\\Http\\Middleware\\ThrottleRequests:60,10" + "App\\Http\\Middleware\\ThrottleRequests:3,5" ], "scopes": [ "any"