summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-01-08 05:56:01 +0100
committertravis%sedsystems.ca <>2005-01-08 05:56:01 +0100
commite2466aae1fda4c2ce67c517074fdc4369d68b848 (patch)
treeeb5daecabb33f093d2e31b61fd884992e8c15938 /globals.pl
parentd6e7117d0ff4a6674a186f443219f56c0bb5bab8 (diff)
downloadbugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.gz
bugzilla-e2466aae1fda4c2ce67c517074fdc4369d68b848.tar.xz
Bug 108870: Bugzilla does not set email prefs for new user until user visits userprefs.cgi
Patch: travis r=mkanat a=justdave Also includes fixes for Bug 109573: New bugzilla accounts should by default have 'CC field changes' turned off, and Bug 275599: flag request email prefs not behaving correctly
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl
index 12644d506..5f599146f 100644
--- a/globals.pl
+++ b/globals.pl
@@ -435,13 +435,15 @@ sub InsertNewUser {
my $cryptpassword = Crypt($password);
+ my $defaultflagstring = SqlQuote(Bugzilla::Constants::DEFAULT_EMAIL_SETTINGS);
+
# Insert the new user record into the database.
$username = SqlQuote($username);
$realname = SqlQuote($realname);
$cryptpassword = SqlQuote($cryptpassword);
PushGlobalSQLState();
- SendSQL("INSERT INTO profiles (login_name, realname, cryptpassword)
- VALUES ($username, $realname, $cryptpassword)");
+ SendSQL("INSERT INTO profiles (login_name, realname, cryptpassword, emailflags)
+ VALUES ($username, $realname, $cryptpassword, $defaultflagstring)");
PopGlobalSQLState();
# Return the password to the calling code so it can be included