isVerified()) { throw new CustomUserMessageAccountStatusException('user.emailNotVerified'); } if ($user->getValidationAdministrator() === null || $user->getValidationDate() === null) { throw new CustomUserMessageAccountStatusException('user.notValidatedByAdmin'); } } /** * @inheritDoc */ public function checkPostAuth (UserInterface $user): void { } }