Merge branch 'master' into dist/envole/7/master

This commit is contained in:
Arnaud Fornerot 2021-02-09 17:02:23 +01:00
commit 5c03e3b44f
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);
}
}