#111616MFA deactivation confirmation wrongly warns that all users are affected
Description
Problem
When an administrator edits a backend user record and deactivates an MFA provider for that user (e.g. TOTP) via the “Deactivate <provider>“ button in the “Multi-factor authentication” field, the confirmation modal says:</provider>
Deactivate Time-based one-time passwords? This action cannot be undone. Caution: This will affect all users and decrease the security of the system.
The same sentence is used for the “Deactivate multi-factor authentication” button (deactivates all providers of the user).
This is wrong. The action only affects the edited user: MfaAjaxController::deactivateAction() initializes exactly the user given by userId/@tableName@ and calls $provider->deactivate() with a property manager for that user. Other users keep their MFA setup and the provider stays available system-wide. The success flash message also correctly reports that the provider was deactivated for that one user.
The warning makes admins believe they are about to switch off MFA for everyone, which is alarming and may make them hesitate to do a routine support task (e.g. resetting TOTP for a user who lost their device).
Steps to reproduce
- Log in as admin, edit a backend user who has TOTP set up
- In the “Multi-factor authentication” field, click “Deactivate Time-based one-time passwords” (or “Deactivate multi-factor authentication”)
- Read the confirmation modal
Expected
The text describes what actually happens, e.g.:
buttons.deactivateMfaProvider.confirmation.text: “Deactivate %s for this user? This action cannot be undone and lowers the security of this user’s account.”buttons.deactivateMfa.confirmation.text: “Deactivate all active providers for this user? This action cannot be undone and lowers the security of this user’s account.”
Actual
Both labels claim “This will affect all users and decrease the security of the system.”
Affected labels:EXT:core/Resources/Private/Language/locallang_core.xlf
buttons.deactivateMfa.confirmation.textbuttons.deactivateMfaProvider.confirmation.text
Used in EXT:backend/Classes/Form/Element/MfaInfoElement.php.
Versions
Seen in 14.3.12, wording unchanged on main.
Side note (translation)
The German translation copies the wrong statement (“Dies betrifft alle Benutzer …”) and the per-provider string misses a space after the placeholder (“%sdeaktivieren?” → “Time-based one-time passwordsdeaktivieren?”). This will need a Crowdin follow-up once the source label is fixed.
Reviews 2
History 16
-
Gerrit Code Review pushed patch set 1 for main to change 98092 status
NewUnder Review 11/27/26, 08:21 -
Gerrit Code Review pushed patch set 2 for main to change 98092 11/27/26, 08:22
-
Gerrit Code Review pushed patch set 3 for main to change 98092 11/27/26, 08:22
-
Gerrit Code Review pushed patch set 4 for main to change 98092 11/30/26, 08:53
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 98070 11/30/26, 12:13
-
bingquan bao commented and changed status
Under ReviewResolved done0 %100 % 11/30/26, 14:30
Applied in changeset commit:14bdd001031e440cbe9bb6b746b909dcbfdd24a2.