This commit is contained in:
Pig Fang 2023-01-16 23:06:31 +08:00
parent 0b169df679
commit 64dea61ec9
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2

View File

@ -3,12 +3,13 @@
namespace App\Http\Middleware;
use App\Models\User;
use Illuminate\Http\Request;
class RejectBannedUser
{
public function handle($request, \Closure $next)
public function handle(Request $request, \Closure $next)
{
if ($request->is('auth/logout')) {
if ($request->route()->getName() === 'auth.logout') {
return $next($request);
}