set mail server test

This commit is contained in:
jleroy2023
2024-11-25 11:36:12 +01:00
parent 732587fa84
commit 07f2261ea9
2 changed files with 3 additions and 1 deletions

2
.env
View File

@@ -37,5 +37,5 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
###< symfony/messenger ###
###> symfony/mailer ###
MAILER_DSN=smtp://
MAILER_DSN=smtp://dev-test@lidge.fr:N2uGKkGa8tQBp5NIvHIt@mail.lidge.fr:587
###< symfony/mailer ###

View File

@@ -138,6 +138,7 @@ class AdminController extends AbstractController
$participant->setActif(false);
$participant->setRoles(['ROLE_USER']);
$participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT));
$participant->setPending(true);
$entityManager->persist($participant);
@@ -203,6 +204,7 @@ class AdminController extends AbstractController
$participant->setActif(false);
$participant->setRoles(explode('|', $row[7]));
$participant->setPassword(password_hash("aChanger44!", PASSWORD_BCRYPT));
$participant->setPending(true);
$em->persist($participant);
// Générer un token unique