PHP crypt() now adding $1$ to password

From: Date: Tue, 02 Jul 2002 16:02:43 +0000
Subject: PHP crypt() now adding $1$ to password
Groups: php.general 
Request: Send a blank email to php-general+get-104948@lists.php.net to get a copy of this message
Hello, I've upgraded to Mandrake 8.2 and installed a couple of apps that I later un-installed. Somewhere along the line I have hosed myself because while running php-nuke I have noticed that all of the new passwords that are getting added to the database (mysql) have a $1$ in front of them. These users cannot validate themselves, it throws an error on the comparison. Code from php-nuke; $setinfo = mysql_fetch_array($result); $dbpass=$setinfo[pass]; if(!$system) { $pass=crypt($pass,substr($dbpass,0,2)); } if (strcmp($dbpass,$pass)) { Header("Location: user.php?stop=1"); return; } I have about 1100 users with no $1$ and 20 with... First, what have I done to myself? Second is there an easy fix to get the new users working. Thank you for all the help. - Brett hayb@jollybelly.com

« previous php.general (#104948) next »