aboutsummaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
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