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