Announcement

Collapse
No announcement yet.

Redirecting failed login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Redirecting failed login

    Hi

    Using Business version 6

    By default, when a user enters in an incorrect username/password, they are redirected to acatalog/login.html

    Is it possible to redirect to an alternative page?

    Thanks

    Nick
    Hazelnet Web Solutions
    www.hazelnet.co.uk
    Actinic & Worldpay Partners
    Specialising in ecommerce and
    online promotion.

    Workwear and Promotional Clothing
    www.workwearhouse.co.uk
    Logo Your Polo!

    #2
    I'm afraid there is no standard way altering the target page here. To be honest I don't see any good reason to do this at all (probably you can shed some light).

    If you are interested in the non-standard way...

    This can be done by altering the ACTINIC::BounceToPageEnhanced and ACTINIC::ReturnToLastPage calls in sub CAccLogin of Actinic.pm. Unluckily there are several different reasons why the login can be refused and all of them is treated separately. So there is lot of things to change if you want to get this work. If you decide to go on this way be sure you have a backup copy of the script and remind that Actinic doesn't support customised scripts.

    Regards,
    Zoltan
    Actinic Software
    www.actinic.co.uk

    Comment


      #3
      Hi

      Thanks for your respone. I'll try your suggestion.

      The reason we want to do this is because we are using a PHP include in our pages. We are setting all of the Actinic pages to use a .htm extension (as opposed to .html) and have configured the server to parse .htm as a php file.

      We need to redirect to our customised login page called login.htm (where the php include will work) rather than login.html (where it won't work).

      Hope that makes sense.

      Thanks

      Nick
      Hazelnet Web Solutions
      www.hazelnet.co.uk
      Actinic & Worldpay Partners
      Specialising in ecommerce and
      online promotion.

      Workwear and Promotional Clothing
      www.workwearhouse.co.uk
      Logo Your Polo!

      Comment


        #4
        Where can I set B2B_LOGONPAGE

        Hi Zoltan

        Referring back to my previous post, where we need to set the default login page to login.htm as opposed to login.html - looking through Actinic.PM, it would seem that we just need to change the value of "B2B_LOGONPAGE"

        Is this right? Can you tell me where I can change this please?

        Many thanks

        Nick
        Hazelnet Web Solutions
        www.hazelnet.co.uk
        Actinic & Worldpay Partners
        Specialising in ecommerce and
        online promotion.

        Workwear and Promotional Clothing
        www.workwearhouse.co.uk
        Logo Your Polo!

        Comment


          #5
          That value comes from the setup blob (nqset00.fil). The value itself is inserted into the blob during the site generation and the file is digitally signed to avoid corruption. Therefore the file can not be edited directly. I would suggest to modify the AccountsSript.pl to override this value. To do so edit the file and after the line
          Code:
          Init();
          insert the following line
          Code:
          $$::g_pSetupBlob{B2B_LOGONPAGE}="your.html";
          I hope this helps to resolve your problem.

          Regards,
          Zoltan
          Actinic Software
          www.actinic.co.uk

          Comment

          Working...
          X