Index: template/en/default/account/prefs/account.html.tmpl =================================================================== --- template/en/default/account/prefs/account.html.tmpl +++ template/en/default/account/prefs/account.html.tmpl @@ -76,6 +76,13 @@ [% Param('passwdqc_desc') FILTER html_light %] +
+ Warning: Changing your Two-factor authentication settings will + automatically log out other login sessions except for the current one. +
+ Index: userprefs.cgi =================================================================== --- userprefs.cgi +++ userprefs.cgi @@ -742,6 +742,11 @@ $user->update({keep_session => 1, keep_tokens => 1}); } + + # Invalidate all logins except for the current one + if ($action eq 'enable' || $action eq 'disable') { + Bugzilla->logout(LOGOUT_KEEP_CURRENT); + } } sub SaveMFAcallback {