|
|
This post has NOT been accepted by the mailing list yet.
Hi,
I'm trying to setup a user registration form that prevents email harvesting using reCaptcha,
When the form fails !$form->isValid() it outputs all input errors (e.g. "Email is already in use", "Invalid password", "Incorrect captcha text entered")
I'm not sure how to add an inputFilter on reCaptcha with "break_chain_on_failure" variable,
$recaptcha = new ReCaptcha(array(
'theme' => 'white',
'lang' => 'en_US',
'tabindex' => 3,
'ssl' => true,
'xhtml' => true,
'message' => _('Incorrect captcha text entered'),
));
$recaptcha->setPubkey('*** PUBLIC KEY ***')
->setPrivkey('*** PRIVATE KEY ***');
$captcha = new Element\Captcha('captcha');
$captcha->setCaptcha($recaptcha);
$captcha->setAttribute('label', _('Verify that you\'re human'));
$this->add($captcha);
Thanks,
Roman
|