Compare commits

..

No commits in common. "5c03e3b44faa332e04c4a993c58d811e7e4fc875" and "477d5f6689626157d8d2d68dfa947187351a55f2" have entirely different histories.

View File

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