diff options
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editusers.cgi b/editusers.cgi index 41e247229..c7851d00a 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -270,7 +270,7 @@ if ($action eq 'search') { ? $cgi->param('password_change_reason') : '' ); - if ($user->in_group('admin') && $cgi->param('mfa') eq '') { + if ($user->in_group('admin') && $otherUser->mfa && $cgi->param('mfa') eq '') { $otherUser->set_mfa(''); Bugzilla->audit(sprintf('%s disabled 2FA for %s', $user->login, $otherUser->login)); } |