Forums / Developer / Shop and Captcha

Shop and Captcha

Author Message

Fabien Mas

Thursday 29 January 2009 7:48:18 am

I would like to put a captcha on my shop - userregister page

No problem with the template, I override it and I put my captcha field in my new template

But How can I check the value filled without hacking the userregister.php file ?
Is there a way to catch the "event" : $module->isCurrentAction( 'Store' )

Thx,
Fabien

Mark Simon

Thursday 29 January 2009 8:03:56 am

Hi Fabien Mas,

did you use the recaptcha contribution?
http://ez.no/developer/contribs/applications/recaptcha_ez4

That contribution comes with a new datatype.
You just have to add this datatype to the userclass, that can register on your server.
Make that Attribute required. That should do.

Mark

www.all2e.com

Fabien Mas

Friday 30 January 2009 12:52:07 am

Hi Mark,

It's unfortunately impossible to use a datatype.
If you look at the code in shop/userregister.php, you will see that the xml is generated here.
No user class is used

Another idea to catch my event ?

Thx for your help
Fabien