docs
docs copied to clipboard
Handling catpchas
No extra hooks needed, explain how.
Hi @kpodemski,
Please, what is the context ? 😄
Maybe I can work on it !
@MattKelvin It was about creating an example of handling captcha in the contactform module without using extra hooks, and rather using actionFrontControllerInitAfter in order to validate the captcha, something like:
public function hookActionFrontControllerInitAfter($params)
{
if ($params['controller'] instanceof ContactControllerCore && Tools::isSubmit('submitMessage')) { [...] }
}