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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67186

Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
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);
}
/**
......
Markdown is supported
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