• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

redirect to custom login page on session expire?

General Discussion
4
6
781
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K
    karkiswapnil last edited by 16 Jul 2019, 12:08

    When seesion of customer expires it redirexts to default bagisto login page. How can i redirect it to my custom login page??

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 16 Jul 2019, 12:45

      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

      1 Reply Last reply Reply Quote 0
      • K
        karkiswapnil last edited by 17 Jul 2019, 03:55

        Thank you.

        1 Reply Last reply Reply Quote 0
        • 13 days later
        • ghermans
          ghermans last edited by 30 Jul 2019, 15:09

          @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

          redirectKnipsel.PNG

          Kind regards,
          Glenn Hermans

          Manager Bagisto Europe
          info@bagisto.eu

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by 31 Jul 2019, 13:29

            Hi @ghermans

            We have resolved this issue, kindly pull from bagisto repository.

            Thanks

            1 Reply Last reply Reply Quote 0
            • 5 years later
            • J
              Jaggu431 last edited by 15 Mar 2024, 04:43

              https://bit.ly/463WKcc

              1 Reply Last reply Reply Quote 0
              4 out of 6
              • First post
                4/6
                Last post