Do i have to put login form on login.html ?

Well I have created a hotspot portal that branches out (paid user directly logs in and free users click a link, watch a 20sec video, and then get redirected to login_stage2.html where another login form is. I have checked the code and it is identical to login.html (which works)

When I login to the login_stage2.html form i get some error complaining about chap authorization not sent, enable javascript … something along those lines.

I uploaded an exact replica to my personal webfolder for source code viewing purposes. http://www.epoxysbox.org/tmp/hotspot60/login.html

Any help would be appreciated.

web browser did not send challenge response (try again, enable JavaScript)


that is the message in $error … this also happens when I have 2 login forms on the login.html page..

I tried having one login box do the normal login for users and another link on the page do a hidden form field login for a user I specify with form field values..

but I still get the same error and it won’t let me login.

SOLVED:

i put another login.html with the code in /free … i read in the man. that you can put it in a sub dir.

that passed the CHAP authentication and all is well. hope this helps someone else