Skip to content

Commit

Permalink
Merge pull request #11525 from nanaya/verification-email-limit
Browse files Browse the repository at this point in the history
Adjust session verification reissue limit
  • Loading branch information
peppy authored Oct 3, 2024
2 parents 4af70d5 + f6ce8d1 commit 4fc9b6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion tests/api_routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4fc9b6a

Please sign in to comment.