Menu

#6 Account activation doesn't work

v1.0_(example)
open
nobody
5
2006-05-15
2006-05-15
Anonymous
No

When register globals set to off (as it should always
be) in activate.php the following line:

$query=mysql_query("UPDATE users SET Pass=MD5('$pass'),
active='y' WHERE ID = $ID");

Must be replaced by:

$query=mysql_query("UPDATE users SET
Pass=MD5('".$_POST["pass2"]."'), active='y' WHERE ID =
$ID");

Cheers
Antoine.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB