diff options
-rw-r--r-- | Bugzilla/MFA.pm | 7 | ||||
-rw-r--r-- | Bugzilla/User.pm | 3 |
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}; } |