Skip to content

Commit

Permalink
add initializeCheckConfirmationAction to avoid "Required argument "ma…
Browse files Browse the repository at this point in the history
…il" is not set for In2code\Powermail\Controller\FormController->checkConfirmation"
  • Loading branch information
svewap committed Aug 8, 2024
1 parent b6e6865 commit 7e7aaac
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Classes/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,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
Expand Down

0 comments on commit 7e7aaac

Please sign in to comment.