aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-09-06 12:44:12 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-09-06 12:44:12 +0200
commita52e66ebe0d98854108f366a9dc3be3790d18180 (patch)
treedb218ba970a19821db63b1616c86d70ee89cecd1 /Bugzilla/User.pm
parente76030a30c35bb23b0bf6d284e32b13384fd4954 (diff)
downloadbugs-a52e66ebe0d98854108f366a9dc3be3790d18180.tar
bugs-a52e66ebe0d98854108f366a9dc3be3790d18180.tar.gz
bugs-a52e66ebe0d98854108f366a9dc3be3790d18180.tar.bz2
bugs-a52e66ebe0d98854108f366a9dc3be3790d18180.tar.xz
bugs-a52e66ebe0d98854108f366a9dc3be3790d18180.zip
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.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index e63be93dd..6cfef6db5 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -2403,6 +2403,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'};
@@ -2417,6 +2420,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