From 00c895c0be42bfed30dc9671f050cd1320962dd0 Mon Sep 17 00:00:00 2001 From: Frans Saris <franssaris@gmail.com> Date: Mon, 10 Feb 2014 15:06:42 +0100 Subject: [PATCH] [BUGFIX] Wrong check removes FE cookie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue #55549 added a wrong check for user uid. As result the FE cookie gets deleted when you are loggedin instead when your not. This change inverses the check. Resolves: #55845 Releases: 6.2 Change-Id: I0c59afb8c89e9f7887970eaf0a4079fe98280b2c Reviewed-on: https://review.typo3.org/27525 Reviewed-by: Wouter Wolters Reviewed-by: Markus Klein Reviewed-by: Marcin SÄ…gol Reviewed-by: Benjamin Mack Tested-by: Benjamin Mack --- .../Classes/Authentication/FrontendUserAuthentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php index 95614355ef5c..f5e92c18cf7c 100644 --- a/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php +++ b/typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php @@ -414,7 +414,7 @@ class FrontendUserAuthentication extends \TYPO3\CMS\Core\Authentication\Abstract // Remove session-data $this->removeSessionData(); // Remove cookie if not logged in as the session data is removed as well - if (!empty($this->user['uid'])) { + if (empty($this->user['uid'])) { $this->removeCookie($this->name); } } elseif ($this->sessionDataTimestamp === NULL) { -- GitLab