mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: use timestamp instead of bool on is_verified
This commit is contained in:
@@ -73,10 +73,10 @@ class RegistrationController extends AbstractController
|
||||
$user,
|
||||
$user->getPassword()
|
||||
)
|
||||
);
|
||||
)->setCreatedAt(new \DateTimeImmutable());
|
||||
|
||||
if (false === (bool) $this->getParameter('registration_verify_email')) {
|
||||
$user->setVerified(true);
|
||||
$user->setVerifiedAt($user->getCreatedAt());
|
||||
} else {
|
||||
$email = $this->emailVerifier->sendEmailConfirmation('app_verify_email', $user,
|
||||
(new TemplatedEmail())
|
||||
|
||||
Reference in New Issue
Block a user