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 password will automatically log out + other login sessions except for the current one. + + New password: Index: template/en/default/account/prefs/mfa.html.tmpl =================================================================== --- template/en/default/account/prefs/mfa.html.tmpl +++ template/en/default/account/prefs/mfa.html.tmpl @@ -277,6 +277,12 @@ Require API key authentication for API requests preference after 2FA is enabled.

+ +

+ 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 {