manager #4
|
@ -8,15 +8,13 @@ use Symfony\Component\HttpFoundation\Response;
|
|||
|
||||
class HomeController extends AbstractController
|
||||
{
|
||||
public function home(Request $request): Response
|
||||
public function home(Request $request)
|
||||
{
|
||||
if ($request->getSession()->get('fgforceconnect') && !$this->getUser()) {
|
||||
return $this->redirectToRoute('app_login');
|
||||
}
|
||||
|
||||
if (!$this->getUser()) {
|
||||
dump('here');
|
||||
|
||||
return $this->render('Home/home.html.twig', [
|
||||
'useheader' => true,
|
||||
'usemenu' => false,
|
||||
|
|
Loading…
Reference in New Issue