Skip to content

Commit

Permalink
[TASK] Align LoginController with latest core version (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoldanski authored Jul 22, 2024
1 parent d8da92c commit f67c435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/XClass/Controller/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public function loginAction(): ResponseInterface
$status = 'success';

if ($this->isLogoutSuccessful()) {
$this->eventDispatcher->dispatch(new LogoutConfirmedEvent($this, $this->view));
$this->eventDispatcher->dispatch(new LogoutConfirmedEvent($this, $this->view, $this->request));
} elseif ($this->hasLoginErrorOccurred()) {
$status = 'failure';
$this->eventDispatcher->dispatch(new LoginErrorOccurredEvent());
$this->eventDispatcher->dispatch(new LoginErrorOccurredEvent($this->request));
}

if (($forwardResponse = $this->handleLoginForwards()) !== null) {
Expand All @@ -53,7 +53,7 @@ public function loginAction(): ResponseInterface
return $redirectResponse;
}

$this->eventDispatcher->dispatch(new ModifyLoginFormViewEvent($this->view));
$this->eventDispatcher->dispatch(new ModifyLoginFormViewEvent($this->view, $this->request));

$storagePageIds = ($GLOBALS['TYPO3_CONF_VARS']['FE']['checkFeUserPid'] ?? false)
? $this->pageRepository->getPageIdsRecursive(GeneralUtility::intExplode(',', (string)($this->settings['pages'] ?? ''), true), (int)($this->settings['recursive'] ?? 0))
Expand Down

0 comments on commit f67c435

Please sign in to comment.