Issue Bug Resolved

#111418MFA setup button links to own MFA module when editing other users

Oliver Bartsch 11/12/26, 08:08 updated 11/19/26, 11:50

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:
  1. Log in as admin
  2. Edit another backend user without MFA in the Backend Users module or Records module
  3. Click “Setup multi-factor authentication” in the “Access” tab
  4. 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

  1. Oliver Bartsch commented <span data-processor="relativetime" data-value="2026-11-12T08:21:52+00:00" > 11/12/26, 08:21 </span>

    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:
    1. Log in as an editor (non-admin) with an active MFA provider
    2. Open the user settings
    3. Click “Deactivate multi-factor authentication”
    4. The request fails with “insufficient permissions”

    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.

  2. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 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.