Skip to content

Commit

Permalink
Merge pull request #408 from dontWatchMeCode/fix-feuser-redirect-typo…
Browse files Browse the repository at this point in the history
…3_request

Redirect error when using felogin
  • Loading branch information
lochmueller authored Mar 15, 2024
2 parents cb21e2d + 54d314c commit 0075628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Middleware/FrontendUserMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface

protected function weShouldHaveCookie(FrontendUserAuthentication $feUser, ServerRequestInterface $request): bool
{
$setCookieHeader = $feUser->appendCookieToResponse(new HtmlResponse(''))->getHeaderLine('Set-Cookie');
$setCookieHeader = $feUser->appendCookieToResponse(new HtmlResponse(''), $request->getAttribute('normalizedParams'))->getHeaderLine('Set-Cookie');

if (strpos($setCookieHeader, 'Max-Age=0')) {
// the new cookie is to delete the old cookie:
Expand Down

0 comments on commit 0075628

Please sign in to comment.