Commit 41ccc6b6 authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benni Mack
Browse files

[BUGFIX] Set applicationType in ResetPasswordCommand

Since #92951 the PSR-7 request used in Core contains the
`applicationType` attribute. Because ResetPasswordCommand
creates its own "fake" request object, the new attribute must
also be added there, to prevent a RuntimeException.

Resolves: #93111
Releases: master
Change-Id: I29c61edbdb0f8047d3e41ee2bb07a9551f2a2418

Tested-by: Christian Kuhn's avatarChristian Kuhn <>
Tested-by: default avatarTYPO3com <>
Tested-by: Benni Mack's avatarBenni Mack <>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <>
Reviewed-by: Benni Mack's avatarBenni Mack <>
parent 22b32dfa
......@@ -26,6 +26,7 @@ use Symfony\Component\Console\Style\SymfonyStyle;
use TYPO3\CMS\Backend\Authentication\PasswordReset;
use TYPO3\CMS\Core\Context\Context;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Core\SystemEnvironmentBuilder;
use TYPO3\CMS\Core\Http\NormalizedParams;
use TYPO3\CMS\Core\Http\ServerRequest;
use TYPO3\CMS\Core\Http\Uri;
......@@ -139,7 +140,9 @@ class ResetPasswordCommand extends Command
Environment::isWindows() ? 'WINDOWS' : 'UNIX'
return $request->withAttribute('normalizedParams', $normalizedParams);
return $request
->withAttribute('normalizedParams', $normalizedParams)
->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_BE);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment