From 23807179790108fc2575d06df59dbaebf8ce0af8 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 6 Sep 2015 12:41:31 +0200 Subject: Bug 1194987: Editing your email address and make it point to a non-existent email address makes Bugzilla stop working r=gerv a=sgreen --- Bugzilla/User.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 01d5fdf4e..ca9b5aa28 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -2429,6 +2429,9 @@ sub check_account_creation_enabled { sub check_and_send_account_creation_confirmation { my ($self, $login) = @_; + my $dbh = Bugzilla->dbh; + + $dbh->bz_start_transaction; $login = $self->check_login_name($login); my $creation_regexp = Bugzilla->params->{'createemailregexp'}; @@ -2443,6 +2446,8 @@ sub check_and_send_account_creation_confirmation { # Create and send a token for this new account. require Bugzilla::Token; Bugzilla::Token::issue_new_user_account_token($login); + + $dbh->bz_commit_transaction; } # This is used in a few performance-critical areas where we don't want to -- cgit v1.2.3-24-g4f1b