• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PSA: JavaScript passwords are not secure

AFB

Lifer
I am tired of seeing this:

validate(pass)
{
if (pass =="password");
{
//go to page
}
else
{
alert("Password not valid");
}
}


Here is a PHP version that is much better.


<?php
if(($_POST['password'] == "password") &amp;&amp; ($_POST['username'] == "username"));
{
//valid page show html
?>


Stick your protected html here




<?php
}
else
{
header("Location:http://google.com");
}
?>
 
See if you can get a password for my account on fox302.com. I always thought it'd be kinda interesting to see if people could hack my site. 🙂
 
Back
Top