manager #4

Merged
afornerot merged 4 commits from manager into master 2022-10-04 12:04:45 +02:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 6c720ed62a - Show all commits

View File

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