Skip to content

Commit

Permalink
Revert "Add rate limiter for a registration (#460)"
Browse files Browse the repository at this point in the history
This reverts commit 7690863.
  • Loading branch information
taylorotwell authored Apr 26, 2023
1 parent ac0c3ed commit 60c4f09
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions routes/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

$limiter = config('fortify.limiters.login');
$twoFactorLimiter = config('fortify.limiters.two-factor');
$registrationLimiter = config('fortify.limiters.registration');
$verificationLimiter = config('fortify.limiters.verification', '6,1');

Route::post(RoutePath::for('login', '/login'), [AuthenticatedSessionController::class, 'store'])
Expand Down Expand Up @@ -70,18 +69,12 @@
if (Features::enabled(Features::registration())) {
if ($enableViews) {
Route::get(RoutePath::for('register', '/register'), [RegisteredUserController::class, 'create'])
->middleware(array_filter([
'guest:'.config('fortify.guard'),
$registrationLimiter ? 'throttle:'.$registrationLimiter : null,
]))
->middleware(['guest:'.config('fortify.guard')])
->name('register');
}

Route::post(RoutePath::for('register', '/register'), [RegisteredUserController::class, 'store'])
->middleware(array_filter([
'guest:'.config('fortify.guard'),
$registrationLimiter ? 'throttle:'.$registrationLimiter : null,
]));
->middleware(['guest:'.config('fortify.guard')]);
}

// Email Verification...
Expand Down

0 comments on commit 60c4f09

Please sign in to comment.