1
0
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:
Trendschau
2019-05-17 22:09:35 +02:00
parent 34c718f2d7
commit 8c6d4db4dc
37 changed files with 582 additions and 318 deletions

View File

@@ -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);
}
}