deactivate user on creation
This commit is contained in:
parent
a41c5095b5
commit
99a68dad4d
|
|
@ -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.');
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue