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 Oct 2, 2024
1 parent b848189 commit c44c0af
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 c44c0af

Please sign in to comment.