Skip to content

Commit

Permalink
[BUGFIX] Persist disabled unsetting on user confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Nov 4, 2024
1 parent 33feeae commit e823a43
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Controller/NewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ protected function statusUserConfirmation(User $user, string $hash, string $stat
ConfigurationUtility::getValue('new./forceValues./onUserConfirmation.', $this->config)
);
$user->setTxFemanagerConfirmedbyuser(true);

if (!$this->isAdminConfirmationMissing($user)) {
$user->setDisable(false);
}

$this->userRepository->update($user);
$this->persistenceManager->persistAll();
$this->logUtility->log(Log::STATUS_REGISTRATIONCONFIRMEDUSER, $user);

if ($this->isAdminConfirmationMissing($user)) {
$this->createAdminConfirmationRequest($user);
} else {
$user->setDisable(false);
$this->logUtility->log(Log::STATUS_NEWREGISTRATION, $user);
$this->finalCreate($user, 'new', 'createStatus', true, $status);
}
Expand Down

0 comments on commit e823a43

Please sign in to comment.