From e2466aae1fda4c2ce67c517074fdc4369d68b848 Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Sat, 8 Jan 2005 04:56:01 +0000 Subject: 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 --- globals.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'globals.pl') 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 -- cgit v1.2.3-65-gdbad