Project

General

Profile

Actions

Bug #94088

open

Wrong permalogin condition in LoginController

Added by Harald Witt over 3 years ago. Updated over 2 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
felogin
Target version:
Start date:
2021-05-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
permalogin felogin
Complexity:
no-brainer
Is Regression:
Sprint Focus:
Remote Sprint

Description

    protected function isPermaloginDisabled(int $permaLogin): bool
    {
        return $permaLogin > 1
               || (int)($this->settings['showPermaLogin'] ?? 0) === 0
               || $GLOBALS['TYPO3_CONF_VARS']['FE']['lifetime'] === 0;
    }

Permalogin is disabled if "$permalogin < 1"!
In most cases $permalogin will be equal to 1. So this bug will have no consequences.

Actions

Also available in: Atom PDF