From 421ff7f194875db9634ea783d9dd5b6111f19df3 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 1 Sep 2015 13:01:20 +0800 Subject: Bug 1197073 - add support for 2fa using totp (eg. google authenticator) --- editusers.cgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'editusers.cgi') 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(); } -- cgit v1.2.3-24-g4f1b