JavaScript log-in validation by-passed by IE8 -
I have a log-in web page that uses JavaScript for name and password verification. This Mozilla works fine in Firefox, but logging without entering IE8 names and passwords allows it to post a script-restriction warning that, when you click on it, you chose to enable javascript can go. It's okay, you can just bypass that step by clicking on the login button on the web page and you are in. This is a big problem. So this Javascript is not running, it defeats the entire purpose of the page.
The (HTML) form tag calls Javascript:
form name = "form1" action = This input tag has a log-in button: "testAccess.htm" onsubmit = "return butCheck_onclick ()"
:
input type = "submit" square = "center" value = "Log in"
I need some type of work - around so that I can either javascript before loading the next page Can turn the T I can do or say a few ways to prevent HTML allowing to load the next page before you run JavaScript. But then why would I need javascript if I can apply such restrictions in HTML? I hope I understand that thank you for any help you can give. --- Andy v.
Here I have the JavaScript function:
You should never authenticate on the client side. Always check your username / password on the server side.
For example, all I have to do is look at the source of the page and copy / paste the username and password. Copy
or even paste the destination URL only.
In addition, disabling JavaScript will definitely be sufficient.
The only validation that you can do on client side (at registration time) is determined if the values entered are correct length, etc. (and duplicated on server side)
Edit: See some good advice from SO users on website certification.
Comments
Post a Comment