initsession

This commit is contained in:
afornerot 2021-02-09 16:51:03 +01:00
parent d0556edfdd
commit e4365913b4
1 changed files with 10 additions and 0 deletions

View File

@ -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);
}
}