docs icon indicating copy to clipboard operation
docs copied to clipboard

Handling catpchas

Open kpodemski opened this issue 8 months ago • 2 comments

No extra hooks needed, explain how.

kpodemski avatar Jun 10 '25 07:06 kpodemski

Hi @kpodemski,

Please, what is the context ? 😄

Maybe I can work on it !

MattKelvin avatar Nov 26 '25 09:11 MattKelvin

@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')) { [...] }

}

kpodemski avatar Dec 02 '25 22:12 kpodemski