lsascha / registeraddress

newsletter registration extension to tt_address made in Extbase + Fluid for Typo3. with double-opt in, user editing and unsubscribing
GNU General Public License v2.0
7 stars 18 forks source link

captcha for subscription #52

Open opaque01 opened 5 years ago

opaque01 commented 5 years ago

Is there a way to add a captcha field into the registration form?

thanks opaque

franzholz commented 5 years ago

I want to implement the captcha function. Should I program this by a ViewHelper? Or is another way recommended?

stephangrass commented 5 years ago

I'm also interested in a captcha for registeraddress. Is there a way now?

franzholz commented 5 years ago

I have written a first version of this enhancement with the captcha feature.

franzholz commented 5 years ago

see my pull request:

https://github.com/lsascha/registeraddress/pull/60

stephangrass commented 5 years ago

Ok. But {afm:getCaptcha()} will result in namespace conflict. How can I resolve this.

franzholz commented 5 years ago

I have added the namespaces now to the example FormFields.html file.

{namespace afm=AFM\Registeraddress\ViewHelpers}
{namespace od=OD\RegisteraddressCategories\ViewHelpers}
franzholz commented 5 years ago

I have forgotten to add the CaptchaViewHelper class to the pull request. I have added it now.

stephangrass commented 5 years ago

The viewhelper-file must named GetCaptchaViewHelper.php The constant captcha has set to the name of the captcha extension. Not boolean. And it's better to show the form again, if the captcha is filled wrong.

franzholz commented 5 years ago

https://github.com/lsascha/registeraddress/pull/60/commits/863f4e9d34d286c7128ecb1ba3194aa82661c57f