summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-03 17:35:45 +0200
committerByron Jones <glob@mozilla.com>2015-09-03 17:35:45 +0200
commit83e02cafd5db45c50143e614fe13cb5fd261e2db (patch)
tree4ac84f031fd7121a78eb7a985c37c4d9ebeca3b4 /Bugzilla
parent7ff867c74a77cd19c389af64a0abaf2d28b9a9d6 (diff)
downloadbugzilla-83e02cafd5db45c50143e614fe13cb5fd261e2db.tar.gz
bugzilla-83e02cafd5db45c50143e614fe13cb5fd261e2db.tar.xz
Bug 1201536 - 2FA secrets for all users are removed when someone disables 2FA
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/MFA.pm7
-rw-r--r--Bugzilla/User.pm3
2 files changed, 0 insertions, 10 deletions
diff --git a/Bugzilla/MFA.pm b/Bugzilla/MFA.pm
index 564f124cd..5db38e55e 100644
--- a/Bugzilla/MFA.pm
+++ b/Bugzilla/MFA.pm
@@ -54,11 +54,4 @@ sub property_delete {
undef, $self->{user}->id, $name);
}
-sub property_delete_all {
- my ($self) = @_;
- Bugzilla->dbh->do(
- "DELETE FROM profile_mfa WHERE user_id",
- undef, $self->{user}->id);
-}
-
1;
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 311b89098..6678e6171 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -410,9 +410,6 @@ sub set_disabledtext {
sub set_mfa {
my ($self, $value) = @_;
- if ($value eq '' && $self->mfa) {
- $self->mfa_provider->property_delete_all();
- }
$self->set('mfa', $value);
delete $self->{mfa_provider};
}