diff options
author | Byron Jones <glob@mozilla.com> | 2015-09-01 09:33:48 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-09-01 09:33:48 +0200 |
commit | 3ac155ad3ac9e7d9711d80ff8c0a326bddcd3cb3 (patch) | |
tree | 0bd6b03faa1ca1d542d2f2becbcc0ed01e49396d /editusers.cgi | |
parent | 91eac6e52808dec25d365e02e2bc8bf7ea3dcd6c (diff) | |
download | bugzilla-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-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)); } |