Bug fix by Brian Jones <cbj@nortel.net> -- was failing to create new users.

git-svn-id: svn://10.0.0.236/trunk@10231 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
terry%netscape.com 1998-09-17 00:21:07 +00:00
parent ef14f3a242
commit 632858d72b

View File

@ -326,7 +326,7 @@ sub InsertNewUser {
for (my $i=0 ; $i<8 ; $i++) {
$password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1);
}
SendSQL("insert into profiles (login_name, password, cryptpassword) values (@{[SqlQuote($username)]}, '$password', encrypt('$password')");
SendSQL("insert into profiles (login_name, password, cryptpassword) values (@{[SqlQuote($username)]}, '$password', encrypt('$password'))");
return $password;
}