MAPG-142 modify UserConfirmationRepository to return only one confirmation for user
(it is not possible for an user to have multiple)
This commit is contained in:
2 files changed
+4
-5
No files matched your search
@@ -184,7 +184,8 @@ class UserController implements ISecured
|
||||
|
||||
\Container::$dbConnection->startTransaction();
|
||||
|
||||
foreach ($this->userConfirmationRepository->getByUser($user) as $userConfirmation) {
|
||||
$userConfirmation = $this->userConfirmationRepository->getByUser($user);
|
||||
if ($userConfirmation !== null) {
|
||||
$this->pdm->deleteFromDb($userConfirmation);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user