View Full Version : Redirecting failed login
Nick
24-Jun-2003, 10:43 AM
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
zmagyar
24-Jun-2003, 01:31 PM
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,
Nick
24-Jun-2003, 01:41 PM
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
Nick
07-Jul-2003, 03:47 PM
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
zmagyar
08-Jul-2003, 10:45 AM
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 Init();insert the following line$$::g_pSetupBlob{B2B_LOGONPAGE}="your.html";
I hope this helps to resolve your problem.
Regards,
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.