isDeleted()) { throw new CustomUserMessageAuthenticationException('This account no longer exists.'); } if (!$user->isVerified()) { throw new CustomUserMessageAuthenticationException('Your email address is not verified.', ['%resend_link%' => '/verify/resend']); } } public function checkPostAuth(UserInterface $user): void { } }