Review main Ready for review Quiet

96751[BUGFIX] Verify original user password in sudo mode when switched

Wolfgang Klinger CR +1 V 0 Normal +228 −15 updated 10/18/26, 18:35

Commit message

While in switch-user mode, the sudo mode verification compared the
entered password against the impersonated user's record, since that
is what `$GLOBALS['BE_USER']` represents. The admin's own password was
rejected and, as the Install Tool password is not offered in switch
mode either, there was no way to pass the verification.

The password is now verified against the original user stored in the
session, and the modal explains which account's password is expected.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 2
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/51/96751/2 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/51/96751/2 && git cherry-pick FETCH_HEAD

Review

  • Code review CR +1 Needs a vote
    • Markus Klein +1
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Merge conflicts 4

Issues 1

Files 9

Review log 35

  1. Wolfgang Klinger uploaded patch set 1 10/16/26, 10:43

  2. Wolfgang Klinger updated the commit message in patch set 2 10/16/26, 10:45

  3. core-ci voted on patch set 1 V +1 10/16/26, 10:52 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111349

  4. core-ci voted on patch set 2 V +1 10/16/26, 11:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111350

  5. Markus Klein voted on patch set 2 CR +1 10/18/26, 18:35