Skip to content

Commit

Permalink
fix/charter-page-inscription : review - log bien l'id de l'utilisateu…
Browse files Browse the repository at this point in the history
…r créé
  • Loading branch information
Raphael committed Jul 19, 2024
1 parent 0a18ea2 commit 2d53b6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sources/AppBundle/Controller/MemberShipController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ public function memberAction(Request $request): Response
$user->setPlainPassword($user->getPassword());
$this->get(UserRepository::class)->save($user);

global $droits;
$droits = Utils::fabriqueDroits($this->get('security.token_storage'), $this->get('security.authorization_checker'));
Logs::initialiser($GLOBALS['AFUP_DB'], $droits->obtenirIdentifiant());
Logs::initialiser($GLOBALS['AFUP_DB'], $user->getId());
Logs::log('Ajout de la personne physique ' . $user->getFirstName() . ' ' . $user->getLastName());

$this->get(UserService::class)->sendWelcomeEmail($user);
Expand Down

0 comments on commit 2d53b6f

Please sign in to comment.