From be610ad922aae00d50bd297fb0dc76a7566ec31f Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" <> Date: Sat, 23 Dec 2000 07:01:29 +0000 Subject: changes from jake@acutex.net to make it possible to toggle the default value of newemailtech for new profiles, this is set by default to be turned on (the old default was off) ; r=dmose@mozilla.org. changes from me to make newemailtech the default in all new installations, and update the verbiage in various spots to make it clear that newemailtech is now considered the one true way and the old tech will be going away. r=endico@mozilla.org,cyeh@bluemartini.com --- globals.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'globals.pl') diff --git a/globals.pl b/globals.pl index 8cce0c78f..34f6b3cf5 100644 --- a/globals.pl +++ b/globals.pl @@ -19,6 +19,7 @@ # # Contributor(s): Terry Weissman # Dan Mosedale +# Jake # Contains some global variables and routines used throughout bugzilla. @@ -582,6 +583,8 @@ sub InsertNewUser { for (my $i=0 ; $i<8 ; $i++) { $password .= substr("abcdefghijklmnopqrstuvwxyz", int(rand(26)), 1); } + my $usenewemailtech = Param('newemailtech') & Param('newemailtechdefault'); + SendSQL("select bit, userregexp from groups where userregexp != ''"); my $groupset = "0"; while (MoreSQLData()) { @@ -599,7 +602,7 @@ sub InsertNewUser { $username = SqlQuote($username); $realname = SqlQuote($realname); - SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset) values ($username, $realname, '$password', encrypt('$password'), $groupset)"); + SendSQL("insert into profiles (login_name, realname, password, cryptpassword, groupset, newemailtech) values ($username, $realname, '$password', encrypt('$password'), $groupset, $usenewemailtech)"); return $password; } -- cgit v1.2.1