diff options
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index 34b84c582..4b68d717b 100644 --- a/globals.pl +++ b/globals.pl @@ -585,7 +585,6 @@ sub InsertNewUser { for (my $i=0 ; $i<8 ; $i++) { $password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1); } - my $usenewemailtech = Param('newemailtech') & Param('newemailtechdefault'); PushGlobalSQLState(); SendSQL("select bit, userregexp from groups where userregexp != ''"); @@ -605,7 +604,7 @@ sub InsertNewUser { $username = SqlQuote($username); $realname = SqlQuote($realname); - SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset, newemailtech) values ($username, $realname, '$password', encrypt('$password'), $groupset, $usenewemailtech)"); + SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset) values ($username, $realname, '$password', encrypt('$password'), $groupset)"); PopGlobalSQLState(); return $password; } |