diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2015-09-06 12:41:31 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-09-06 12:41:31 +0200 |
commit | 23807179790108fc2575d06df59dbaebf8ce0af8 (patch) | |
tree | ed9e1b383de7f72f1892c66552640240c431f5f2 /Bugzilla/User.pm | |
parent | a666b2a74f565a5ebb38f0ce0b400d04b1ea7ca4 (diff) | |
download | bugzilla-23807179790108fc2575d06df59dbaebf8ce0af8.tar.gz bugzilla-23807179790108fc2575d06df59dbaebf8ce0af8.tar.xz |
Bug 1194987: Editing your email address and make it point to a non-existent email address makes Bugzilla stop working
r=gerv a=sgreen
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r-- | Bugzilla/User.pm | 5 |
1 files changed, 5 insertions, 0 deletions
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 |