From 630248a6446480bcd35ea88fb201032515eec604 Mon Sep 17 00:00:00 2001 From: Sven Wappler Date: Thu, 8 Aug 2024 10:23:57 +0200 Subject: [PATCH] add initializeCheckConfirmationAction to avoid "Required argument "mail" is not set for In2code\Powermail\Controller\FormController->checkConfirmation" --- Classes/Controller/FormController.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Classes/Controller/FormController.php b/Classes/Controller/FormController.php index d0dfdab76..c435da198 100644 --- a/Classes/Controller/FormController.php +++ b/Classes/Controller/FormController.php @@ -120,6 +120,21 @@ public function checkConfirmationAction(Mail $mail): ResponseInterface return (new ForwardResponse('confirmation'))->withArguments($this->request->getArguments()); } + + public function initializeCheckConfirmationAction(): void + { + // ToDo -- v13: move exceptions to methods + $response = $this->forwardIfMailParamEmpty(); + if ($response !== null) { + throw new PropagateResponseException($response); + } + + $response = $this->forwardIfFormParamsDoNotMatch(); + if ($response !== null) { + throw new PropagateResponseException($response); + } + } + /** * @return void * @throws DeprecatedException