renforcer par un uuid la génération auto d'un password
This commit is contained in:
@ -280,9 +280,12 @@ class SynchroCommand extends Command
|
||||
$user->setUsername($ldapentry[$this->username]);
|
||||
$user->setIsvisible(true);
|
||||
$user->setApikey(Uuid::uuid4());
|
||||
$user->setPassword("LDAPPWD-".$ldapentry[$this->username]);
|
||||
$user->setRole("ROLE_USER");
|
||||
$user->setAvatar("noavatar.png");
|
||||
|
||||
$uuid=Uuid::uuid4();
|
||||
$user->setPassword("PWD-".$ldapentry[$this->username]."-".$uuid);
|
||||
|
||||
$this->em->persist($user);
|
||||
}
|
||||
|
||||
@ -736,9 +739,12 @@ class SynchroCommand extends Command
|
||||
$user->setUsername($nineuser->userlogin);
|
||||
$user->setIsvisible(true);
|
||||
$user->setApikey(Uuid::uuid4());
|
||||
$user->setPassword("NINEPWD-".$nineuser->userlogin);
|
||||
$user->setRole("ROLE_USER");
|
||||
$user->setAvatar($nineuser->useravatar);
|
||||
|
||||
$uuid=Uuid::uuid4();
|
||||
$user->setPassword("PWD-".$nineuser->userlogin."-".$uuid);
|
||||
|
||||
$this->em->persist($user);
|
||||
}
|
||||
|
||||
@ -893,11 +899,13 @@ class SynchroCommand extends Command
|
||||
$user->setEmail($email);
|
||||
$user->setNiveau01($niveau01);
|
||||
$user->setSiren($niveau01->getSiren());
|
||||
$user->setPassword("PASSWORDFROMEXTERNE");
|
||||
$user->setVisible(true);
|
||||
$user->setAuthlevel("simple");
|
||||
$user->setBelongingpopulation("agent");
|
||||
|
||||
$uuid=Uuid::uuid4();
|
||||
$user->setPassword("PWD-".$username."-".$uuid);
|
||||
|
||||
if(in_array($username,$usersadmin))
|
||||
$user->setRole("ROLE_ADMIN");
|
||||
else {
|
||||
|
Reference in New Issue
Block a user