This commit is contained in:
parent
31f163d56d
commit
d23d07cdf0
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue