Hi,
I'm having a little problem with a password Reset Script I've made
The script sends you a reset hash to your email to confirm that you requested the password reset. This resethash is just a random string with letters and numbers that is 15 chars long
Problem is, when I verify if it is 15 chars long, the script is telling me it isn't
// ...
$hash = $_GET['hash'];
if(strlen($hash) == 0) { $msg[] = "Hash Field is empty !"; }
elseif(strlen($hash) !== 15) { $msg[] = "Hash is invalid !"; }
if(count($msg) == 0)
{
// ....
}
Here is a test URL with a valid Reset Hash
http://virtualtrader.cuonic.tk/resetpass.php?hash=APraKgfg0l0QqwC
What is wrong ? Thanks in advance ;)