pb init
This commit is contained in:
parent
673a0063fc
commit
7ec78a2a70
|
@ -564,7 +564,7 @@ class SynchroUsersCommand extends Command
|
||||||
$this->writeln($group->getName());
|
$this->writeln($group->getName());
|
||||||
|
|
||||||
$usergroups=[];
|
$usergroups=[];
|
||||||
if($tabgroups[$group->getIdexternal()])
|
if(array_key_exists($group->getIdexternal(),$tabgroups)&&$tabgroups[$group->getIdexternal()])
|
||||||
$usergroups = $tabgroups[$group->getIdexternal()]["users"];
|
$usergroups = $tabgroups[$group->getIdexternal()]["users"];
|
||||||
$tbusers=[];
|
$tbusers=[];
|
||||||
foreach($usergroups as $user) {
|
foreach($usergroups as $user) {
|
||||||
|
|
|
@ -37,6 +37,9 @@ class SecurityController extends AbstractController
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loginMYSQL(Request $request, AuthenticationUtils $authenticationUtils) {
|
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(
|
return $this->render('Home/login.html.twig', array(
|
||||||
'last_username' => $authenticationUtils->getLastUsername(),
|
'last_username' => $authenticationUtils->getLastUsername(),
|
||||||
'error' => $authenticationUtils->getLastAuthenticationError(),
|
'error' => $authenticationUtils->getLastAuthenticationError(),
|
||||||
|
@ -117,6 +120,8 @@ class SecurityController extends AbstractController
|
||||||
$this->updateLDAP($user);
|
$this->updateLDAP($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// activer les activités par défaut
|
||||||
|
$this->get('session')->set('activeactivity',true);
|
||||||
|
|
||||||
// Autoconnexion
|
// Autoconnexion
|
||||||
// Récupérer le token de l'utilisateur
|
// Récupérer le token de l'utilisateur
|
||||||
|
|
Loading…
Reference in New Issue