Max F 5 vuotta sitten
vanhempi
commit
6cea0d9a23
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      src/App/Middlewares/AuthentificationHandler.php

+ 7 - 0
src/App/Middlewares/AuthentificationHandler.php

@@ -11,6 +11,13 @@ class AuthentificationHandler
 	
 	public function __invoke(Request $request, Response $response, callable $next)
 	{
+		$is_auth = false;
+
+		//pre($request, 1);
+
+		if (! $is_auth) {
+			//return $response->redirect( getRouteUrl('login') );
+		}
 
 		return $next($request, $response);
 	}