Bagisto Forum

    Bagisto

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

    redirect to custom login page on session expire?

    General Discussion
    4
    6
    776
    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

      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

        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

          Thank you.

          1 Reply Last reply Reply Quote 0
          • ghermans
            ghermans last edited by

            @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

              Hi @ghermans

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

              Thanks

              1 Reply Last reply Reply Quote 0
              • J
                Jaggu431 last edited by

                https://bit.ly/463WKcc

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post