Project

General

Profile

Actions

Bug #97590

closed

Fluid ViewHelper for Frontend Authentication don't respect isLoggedIn property

Added by Cristian Buja over 2 years ago. Updated over 2 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-05-09
Due date:
% Done:

0%

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

Description

Fluid Viewhelper for frontend authentication check id of user and not isLoggedIn property.

If someone call FrontendAuthentication::hideActiveLogin this viewhelper don't work as aspected.

TYPO3 version ^10

Suggestion:

change

return GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.user', 'id', 0) > 0;

with

return GeneralUtility::makeInstance(Context::class)->getPropertyFromAspect('frontend.user', 'isLoggedIn', false);

in viewhelper class.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96616: Remove pages.fe_login_modeClosedOliver Bartsch2022-01-21

Actions
Actions #1

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Rejected

Thanks for creating this issue.

Even though it is valid, the mentioned method has been removed with #96616. The code won't be changed in 11.

Feel free to use a custom viewhelper if you need that.

Actions #2

Updated by Georg Ringer over 2 years ago

  • Related to Bug #96616: Remove pages.fe_login_mode added
Actions

Also available in: Atom PDF