#111418MFA setup button links to own MFA module when editing other users
Description
When editing a backend user record in FormEngine, the “mfa” field shows a “Setup multi-factor authentication” button if the user has no MFA configured. The button links to the MFA module, which always operates on the currently logged-in backend user.
An administrator editing another backend user therefore ends up in the MFA module with their own MFA configuration. Setting up MFA for another user is not possible there, so the button is misleading. The same button and the “secure your account” description are also rendered for fe_users records, where the backend MFA module makes no sense at all.
Steps to reproduce:- Log in as admin
- Edit another backend user without MFA in the Backend Users module or Records module
- Click “Setup multi-factor authentication” in the “Access” tab
- The MFA module shows the MFA configuration of the logged-in admin
Expected: The setup information and button are only shown in the user settings of the current user, or when the current user edits their own be_users record.
Regression of #109521.
Reviews 2
History 26
-
Oliver Bartsch commented <span data-processor="relativetime" data-value="2026-11-12T08:21:52+00:00" > 11/12/26, 08:21 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97571 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-12T08:33:56+00:00" > 11/12/26, 08:33 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97571 <span data-processor="relativetime" data-value="2026-11-14T10:07:00+00:00" > 11/14/26, 10:07 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97571 <span data-processor="relativetime" data-value="2026-11-14T11:07:39+00:00" > 11/14/26, 11:07 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97843 <span data-processor="relativetime" data-value="2026-11-19T11:47:24+00:00" > 11/19/26, 11:47 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-19T11:50:10+00:00" > 11/19/26, 11:50 </span>Applied in changeset commit:b067a91159070f200361940be2b66f37c250d7c3.
A second issue in the same form element is handled together with this one:
In the user settings, the element renders the “Deactivate multi-factor authentication” button and the per-provider deactivation buttons for non-admin users. The Ajax endpoint (MfaAjaxController) only allows admins to deactivate providers, so the request is rejected with “insufficient permissions”.
Steps to reproduce:Expected: The deactivation buttons are only rendered for admins, as enforced by the Ajax endpoint. Editors manage their providers in the MFA module, which is linked in the user settings.