Fix to allow creating of new accounts

This commit is contained in:
Tony Lambregts
2005-01-05 19:08:06 +00:00
committed by Jeremy Newman
parent c28339d683
commit ff64795163
3 changed files with 11 additions and 3 deletions

View File

@@ -118,11 +118,11 @@ class User {
* create a new user
* returns 0 on success and an error msg on failure
*/
function create($username, $password, $realname, $email)
function create($username, $password, $realname, $email, $CVSrelease)
{
$result = mysql_query("INSERT INTO user_list VALUES ( NOW(), 0, ".
"'$username', password('$password'), ".
"'$realname', '$email', NOW(), 0, 0)");
"'$realname', '$email', NOW(), 0, 0, '$CVSrelease')");
if(!$result)
return mysql_error();
return $this->restore($username, $password);