This commit is contained in:
Edward Yang 2022-08-18 18:25:02 +08:00
parent 31f163d56d
commit d23d07cdf0
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class ShopAuthenticate extends Middleware
$customer = current_customer();
if ($customer->status != 1) {
Auth::guard(Customer::AUTH_GUARD)->logout();
return redirect(shop_route('account.login'));
}
return $next($request);