renforcer par un uuid la génération auto d'un password

This commit is contained in:
2022-09-15 14:54:34 +02:00
parent 87c9d362f2
commit af5c6f9626
2 changed files with 13 additions and 4 deletions

View File

@ -457,7 +457,8 @@ class SecurityController extends AbstractController
if(empty($avatar)) $avatar = "noavatar.png";
if(empty($firstname)) $firstname = " ";
if(empty($lastname)) $lastname = $username;
$password=$this->getParameter("appAuth")."PWD-".$username;
$uuid=Uuid::uuid4();
$password=$this->getParameter("appAuth")."PWD-".$username."-".$uuid;
// Si aucun niveau01 on prend par défaut le niveau system
if(!$niveau01) $niveau01=$em->getRepository('App\Entity\Niveau01')->find(-1);