summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-09-01 09:33:48 +0200
committerByron Jones <glob@mozilla.com>2015-09-01 09:33:48 +0200
commit3ac155ad3ac9e7d9711d80ff8c0a326bddcd3cb3 (patch)
tree0bd6b03faa1ca1d542d2f2becbcc0ed01e49396d /editusers.cgi
parent91eac6e52808dec25d365e02e2bc8bf7ea3dcd6c (diff)
downloadbugzilla-3ac155ad3ac9e7d9711d80ff8c0a326bddcd3cb3.tar.gz
bugzilla-3ac155ad3ac9e7d9711d80ff8c0a326bddcd3cb3.tar.xz
Bug 1197073 - add support for 2fa using totp (eg. google authenticator)
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi2
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));
}