mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: email validation. Fixes #49
This commit is contained in:
@@ -75,6 +75,9 @@ class RegistrationController extends AbstractController
|
||||
)
|
||||
);
|
||||
|
||||
$this->em->persist($user);
|
||||
$this->em->flush();
|
||||
|
||||
if (false === (bool) $this->getParameter('registration_verify_email')) {
|
||||
$user->setVerified(true);
|
||||
} else {
|
||||
@@ -94,9 +97,6 @@ class RegistrationController extends AbstractController
|
||||
]);
|
||||
}
|
||||
|
||||
$this->em->persist($user);
|
||||
$this->em->flush();
|
||||
|
||||
$this->logger->info('A new user has registered ({username}).', [
|
||||
'username' => $user->getUserIdentifier(),
|
||||
]);
|
||||
|
||||
@@ -28,7 +28,7 @@ readonly class EmailVerifier
|
||||
$verifyEmailRouteName,
|
||||
(string) $user->getId(),
|
||||
$user->getEmail(),
|
||||
['id' => $user->getId()]
|
||||
['id' => (string) $user->getId()]
|
||||
);
|
||||
|
||||
$context = $email->getContext();
|
||||
|
||||
Reference in New Issue
Block a user