Project

General

Profile

Actions

Bug #104398

open

Felogin - ignoring noredirect param

Added by Philipp Parzer about 1 month ago. Updated 27 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
felogin
Target version:
-
Start date:
2024-07-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/felogin/Classes/Controller/LoginController.php#L249

in Line 249 it is checked for argument 'noredirect' - but in

https://github.com/TYPO3/typo3/blob/main/typo3/sysext/felogin/Resources/Private/Templates/Login/Login.html#L76

the f:form.hidden has only a name attribute without extbase context (name="noredirect" instead of name="tx_felogin_login[noredirect]")
so the 'noredirect' argument never gets checked

following test works:

|| (isset($this->request->getParsedBody()['noredirect']) && $this->request->getParsedBody()['noredirect'] === '1')

Actions

Also available in: Atom PDF