Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed May 29, 2023
2 parents b7aa755 + 647707f commit 6608000
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use Flarum\Extend;
use Flarum\Foundation\Event\ClearingCache;
use Flarum\Http\Middleware\CheckCsrfToken;
use Flarum\Http\Middleware\StartSession;
use Flarum\Settings\Event\Saved;

return [
Expand Down
8 changes: 4 additions & 4 deletions src/Middleware/LoginMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
use ACPL\FlarumCache\LSCache;
use Dflydev\FigCookies\FigResponseCookies;
use Flarum\Http\CookieFactory;
use Flarum\Http\UrlGenerator;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Session\Session;
use Laminas\Diactoros\Uri;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface;
Expand Down Expand Up @@ -43,7 +41,9 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface

private function withVaryCookie(Response $response, Session $session): Response
{
return FigResponseCookies::set($response,
$this->cookie->make(LSCache::VARY_COOKIE, $session->token(), $this->session['lifetime'] * 60));
return FigResponseCookies::set(
$response,
$this->cookie->make(LSCache::VARY_COOKIE, $session->token(), $this->session['lifetime'] * 60)
);
}
}
3 changes: 0 additions & 3 deletions src/Middleware/LogoutMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
use ACPL\FlarumCache\LSCache;
use ACPL\FlarumCache\LSCacheHeadersEnum;
use Dflydev\FigCookies\FigResponseCookies;
use Flarum\Http\CookieFactory;
use Flarum\Http\UrlGenerator;
use Illuminate\Contracts\Session\Session;
use Laminas\Diactoros\Response\RedirectResponse;
use Laminas\Diactoros\Uri;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface;
Expand Down

0 comments on commit 6608000

Please sign in to comment.