summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authordmose%mozilla.org <>2000-12-23 08:01:29 +0100
committerdmose%mozilla.org <>2000-12-23 08:01:29 +0100
commitbe610ad922aae00d50bd297fb0dc76a7566ec31f (patch)
tree3adb89e2ced46a5acf903d22c0633a83c02ef676 /globals.pl
parent2f1d13b174e578f154d1e5b36c19a3895fecd57c (diff)
downloadbugzilla-be610ad922aae00d50bd297fb0dc76a7566ec31f.tar.gz
bugzilla-be610ad922aae00d50bd297fb0dc76a7566ec31f.tar.xz
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
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl5
1 files changed, 4 insertions, 1 deletions
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 <terry@mozilla.org>
# Dan Mosedale <dmose@mozilla.org>
+# Jake <jake@acutex.net>
# 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;
}