🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 21:56:53 +01:00
parent 8bb1241603
commit dc948ec268
2 changed files with 7 additions and 4 deletions
+3 -1
View File
@@ -13,4 +13,6 @@ use Illuminate\Support\Facades\Broadcast;
| |
*/ */
Broadcast::channel('App.Models.User.{id}', fn ($user, $id) => (int) $user->id === (int) $id); Broadcast::channel('App.Models.User.{id}', function (\App\Models\User $user, int $id): bool {
return $user->id === $id;
});
+4 -3
View File
@@ -200,12 +200,13 @@ Route::middleware(['maintenance', 'check.ban', 'force.staff.2fa'])->group(functi
if (Features::enabled(Features::twoFactorAuthentication())) { if (Features::enabled(Features::twoFactorAuthentication())) {
$twoFactorLimiter = config('fortify.limiters.two-factor'); $twoFactorLimiter = config('fortify.limiters.two-factor');
$guard = config('fortify.guard');
Route::post('/two-factor-challenge', [TwoFactorAuthenticatedSessionController::class, 'store']) Route::post('/two-factor-challenge', [TwoFactorAuthenticatedSessionController::class, 'store'])
->middleware( ->middleware(
array_filter([ array_filter([
'guest:' . config('fortify.guard'), is_string($guard) ? 'guest:' . $guard : null,
$twoFactorLimiter ? 'throttle:' . $twoFactorLimiter : null, is_string($twoFactorLimiter) ? 'throttle:' . $twoFactorLimiter : null,
]), ])
); );
} }