From 3ac155ad3ac9e7d9711d80ff8c0a326bddcd3cb3 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 1 Sep 2015 15:33:48 +0800 Subject: Bug 1197073 - add support for 2fa using totp (eg. google authenticator) --- editusers.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- cgit v1.2.3-24-g4f1b