Skip to content

Commit fc4b9b0

Browse files
authored
Revert "Add rate limiter for a registration (#460)" (#465)
This reverts commit 7690863.
1 parent ac0c3ed commit fc4b9b0

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

routes/routes.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

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

3938
Route::post(RoutePath::for('login', '/login'), [AuthenticatedSessionController::class, 'store'])
@@ -70,18 +69,12 @@
7069
if (Features::enabled(Features::registration())) {
7170
if ($enableViews) {
7271
Route::get(RoutePath::for('register', '/register'), [RegisteredUserController::class, 'create'])
73-
->middleware(array_filter([
74-
'guest:'.config('fortify.guard'),
75-
$registrationLimiter ? 'throttle:'.$registrationLimiter : null,
76-
]))
72+
->middleware(['guest:'.config('fortify.guard')])
7773
->name('register');
7874
}
7975

8076
Route::post(RoutePath::for('register', '/register'), [RegisteredUserController::class, 'store'])
81-
->middleware(array_filter([
82-
'guest:'.config('fortify.guard'),
83-
$registrationLimiter ? 'throttle:'.$registrationLimiter : null,
84-
]));
77+
->middleware(['guest:'.config('fortify.guard')]);
8578
}
8679

8780
// Email Verification...

0 commit comments

Comments
 (0)