summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-17 09:21:07 +0200
committerterry%netscape.com <>1998-09-17 09:21:07 +0200
commitb88aac2747e311bf2e5b7294fe857bf52d667718 (patch)
tree3fca0aa41c9b6f73034e36f444163c0b1d828257 /globals.pl
parent2e4e8698f87145469e45afe37bc30307dafc2cf0 (diff)
downloadbugzilla-b88aac2747e311bf2e5b7294fe857bf52d667718.tar.gz
bugzilla-b88aac2747e311bf2e5b7294fe857bf52d667718.tar.xz
Bug fix by Brian Jones <cbj@nortel.net> -- was failing to create new users.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.pl b/globals.pl
index 194d00d07..2a33aa9c4 100644
--- a/globals.pl
+++ b/globals.pl
@@ -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;
}