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

This commit is contained in:
Arnaud Fornerot 2020-11-12 16:30:58 +01:00
commit 8f17591995
2 changed files with 6 additions and 1 deletions

View File

@ -564,7 +564,7 @@ class SynchroUsersCommand extends Command
$this->writeln($group->getName());
$usergroups=[];
if($tabgroups[$group->getIdexternal()])
if(array_key_exists($group->getIdexternal(),$tabgroups)&&$tabgroups[$group->getIdexternal()])
$usergroups = $tabgroups[$group->getIdexternal()]["users"];
$tbusers=[];
foreach($usergroups as $user) {

View File

@ -37,6 +37,9 @@ class SecurityController extends AbstractController
}
public function loginMYSQL(Request $request, AuthenticationUtils $authenticationUtils) {
// activer les activités par défaut
$this->get('session')->set('activeactivity',true);
return $this->render('Home/login.html.twig', array(
'last_username' => $authenticationUtils->getLastUsername(),
'error' => $authenticationUtils->getLastAuthenticationError(),
@ -117,6 +120,8 @@ class SecurityController extends AbstractController
$this->updateLDAP($user);
}
// activer les activités par défaut
$this->get('session')->set('activeactivity',true);
// Autoconnexion
// Récupérer le token de l'utilisateur