mirror of
https://github.com/typemill/typemill.git
synced 2025-08-10 16:14:20 +02:00
Version 1.2.14 Magic Table of Contents
This commit is contained in:
@@ -7,7 +7,7 @@ use Slim\Http\Request;
|
||||
use Slim\Http\Response;
|
||||
|
||||
class RedirectIfUnauthenticated
|
||||
{
|
||||
{
|
||||
protected $router;
|
||||
|
||||
public function __construct(RouterInterface $router, $flash)
|
||||
@@ -16,12 +16,12 @@ class RedirectIfUnauthenticated
|
||||
}
|
||||
|
||||
public function __invoke(Request $request, Response $response, $next)
|
||||
{
|
||||
{
|
||||
if(!isset($_SESSION['login']))
|
||||
{
|
||||
return $response->withRedirect($this->router->pathFor('auth.show'));
|
||||
}
|
||||
|
||||
|
||||
return $next($request, $response);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user