From a41c5095b53a1f3cee48f099c43321b417fa24df Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 28 Jan 2026 16:15:30 +0100 Subject: [PATCH 1/2] correct form method --- templates/organization/edit.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/organization/edit.html.twig b/templates/organization/edit.html.twig index bd1b225..8f93d6a 100644 --- a/templates/organization/edit.html.twig +++ b/templates/organization/edit.html.twig @@ -8,7 +8,7 @@
- {{ 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_end(form) }} From 99a68dad4d244c1fe4a0da093f5b6c757999b51d Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 28 Jan 2026 16:18:39 +0100 Subject: [PATCH 2/2] deactivate user on creation --- src/Controller/SecurityController.php | 1 + src/Service/UserService.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controller/SecurityController.php b/src/Controller/SecurityController.php index 9b2a988..e155d2a 100644 --- a/src/Controller/SecurityController.php +++ b/src/Controller/SecurityController.php @@ -144,6 +144,7 @@ class SecurityController extends AbstractController if ($uo) { $uo->setStatut("ACCEPTED"); $uo->setIsActive(true); + $user->setIsActive(true); $this->entityManager->persist($uo); $this->entityManager->flush(); $this->loggerService->logOrganizationInformation($orgId, $user->getId(), 'User accepted organization invitation during password reset.'); diff --git a/src/Service/UserService.php b/src/Service/UserService.php index bc28352..06c6c70 100644 --- a/src/Service/UserService.php +++ b/src/Service/UserService.php @@ -596,7 +596,7 @@ class UserService // Generate token here if it's part of the user persistence flow $token = $this->generatePasswordToken($user); - + $user->setisActive(false); $this->entityManager->persist($user); $this->entityManager->flush();