diff --git a/src/nineschool-1.0/src/Controller/SecurityController.php b/src/nineschool-1.0/src/Controller/SecurityController.php index addb116..0ef01ae 100755 --- a/src/nineschool-1.0/src/Controller/SecurityController.php +++ b/src/nineschool-1.0/src/Controller/SecurityController.php @@ -38,6 +38,9 @@ class SecurityController extends AbstractController } public function loginMYSQL(Request $request, AuthenticationUtils $authenticationUtils) { + // Initalisation de la session + $this->initSession(); + return $this->render('Home/login.html.twig', array( 'last_username' => $authenticationUtils->getLastUsername(), 'error' => $authenticationUtils->getLastAuthenticationError(), @@ -121,6 +124,9 @@ class SecurityController extends AbstractController // Sauvegarde des attributes en session $this->get('session')->set('attributes', $attributes); + // Initalisation de la session + $this->initSession(); + // Mise à jour par rapport au maitre de l'identité $masteridentity=$this->getParameter("appMasteridentity"); if($masteridentity=="Ninegate") { @@ -358,4 +364,8 @@ class SecurityController extends AbstractController $em->flush(); } } + + private function initSession() { + $this->get('session')->set('activeactivity', true); + } }