redirect to custom login page on session expire?
-
When seesion of customer expires it redirexts to default bagisto login page. How can i redirect it to my custom login page??
-
Hi,
For Customer
You can check Middleware of 'Customer' Package (RedirectIfNotCustomer.php) , there you can find a code like -
if (! Auth::guard($guard)->check()) { return redirect()->route('customer.session.index'); }
For Admin
You can check Middleware of 'User' Package (Bouncer.php) , there you can find a code like -
if (! Auth::guard($guard)->check()) { return redirect()->route('admin.session.create'); }
change this route to your custom route.
Thanks
-
Thank you.
-
@rahul with the current version from the master branch people receive a error in their browser "ERR_TOO_MANY_REDIRECTS" when the session is expired
-
-