diff --git a/src/Controller/RegistrationController.php b/src/Controller/RegistrationController.php index cc4bd95..9216b23 100644 --- a/src/Controller/RegistrationController.php +++ b/src/Controller/RegistrationController.php @@ -100,6 +100,9 @@ public function resendVerifyEmail( Mailer $mailer, VerifyEmailHelperInterface $verifyEmailHelper ): Response { + + $email = $request->query->get('email', ''); + if ($request->isMethod('POST')) { $email = $request->request->get('email'); $user = $userRepository->findOneBy(['email' => $email]); @@ -121,6 +124,8 @@ public function resendVerifyEmail( $this->addFlash('error', 'authenticate.flash.verifyEmail.emailNotFoundOrAlreadyVerified'); } - return $this->render('@NakaCMS/registration/resend_verify_email.html.twig'); + return $this->render('@NakaCMS/registration/resend_verify_email.html.twig', [ + 'email' => $email, + ]); } }