Merge branch 'dev/user/update-1' into 'develop'

Dev/user/update 1

See merge request easy-solutions/apps/easyportal!16
This commit is contained in:
Charles-Edouard MARGUERITE 2026-01-28 15:19:47 +00:00
commit fef74fea64
3 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,7 @@ class SecurityController extends AbstractController
if ($uo) { if ($uo) {
$uo->setStatut("ACCEPTED"); $uo->setStatut("ACCEPTED");
$uo->setIsActive(true); $uo->setIsActive(true);
$user->setIsActive(true);
$this->entityManager->persist($uo); $this->entityManager->persist($uo);
$this->entityManager->flush(); $this->entityManager->flush();
$this->loggerService->logOrganizationInformation($orgId, $user->getId(), 'User accepted organization invitation during password reset.'); $this->loggerService->logOrganizationInformation($orgId, $user->getId(), 'User accepted organization invitation during password reset.');

View File

@ -596,7 +596,7 @@ class UserService
// Generate token here if it's part of the user persistence flow // Generate token here if it's part of the user persistence flow
$token = $this->generatePasswordToken($user); $token = $this->generatePasswordToken($user);
$user->setisActive(false);
$this->entityManager->persist($user); $this->entityManager->persist($user);
$this->entityManager->flush(); $this->entityManager->flush();

View File

@ -8,7 +8,7 @@
</div> </div>
<div class="card-body"> <div class="card-body">
{{ form_start(form, {'action': path('organization_edit', {'id': organization.id}), 'method': 'PUT'}) }} {{ form_start(form, {'action': path('organization_edit', {'id': organization.id}), 'method': 'POST'}) }}
{{ form_widget(form) }} {{ form_widget(form) }}
<button type="submit" class="btn btn-primary">Enregistrer</button> <button type="submit" class="btn btn-primary">Enregistrer</button>
{{ form_end(form) }} {{ form_end(form) }}