Skip to content
Snippets Groups Projects
Commit 9b1b65ad authored by Markus Klein's avatar Markus Klein Committed by Richard Haeser
Browse files

[BUGFIX] Show cookie warning only for successful authentication

The login dialog may show a cookie warning.
This has only to be shown if the authentication was successful, but the
cookie has not been accepted by the browser.

Resolves: #93492
Releases: master, 10.4
Change-Id: I5d8409357e9db1ed73f38862d8a1586580dab6ca
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68334


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarRichard Haeser <richard@richardhaeser.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarRichard Haeser <richard@richardhaeser.com>
parent e4dcc1e0
Branches
Tags
No related merge requests found
......@@ -121,7 +121,7 @@ class LoginController extends AbstractLoginFormController
$this->configuration = RedirectConfiguration::fromSettings($this->settings);
if ($this->isLoginOrLogoutInProgress() && !$this->isRedirectDisabled()) {
if (!$this->userAspect->isLoggedIn() && $this->userService->cookieWarningRequired()) {
if ($this->userAspect->isLoggedIn() && $this->userService->cookieWarningRequired()) {
$this->showCookieWarning = true;
return;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment