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