Jump to content

Recommended Posts

Quick question for anyone who has implemented breakChainOnFailure to a validator in their forms. There is little documentation on this, however I would like to add a breakChainOnFailure to my reCaptcha. I want to do this because if someone incorrectly answers the reCaptcha I don't want to reveal if the username or password is correct which would weaken the security of having a reCaptcha in the first place.

 

Anyways here's the reCaptcha code I'm using now which works great:

 

$captcha = new Zend_Form_Element_Captcha('securityCheck', array(   
       	'captcha' => 'ReCaptcha',
       	'disableLoadDefaultDecorators' => TRUE,
       	'captchaOptions' => array(   
       	'captcha' => 'ReCaptcha',   
       	'privKey' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 
       	'pubKey' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' 
       )));

       $this->addElement($captcha);
       $this->getElement('securityCheck')->getCaptcha()->getService()
       ->setOption('theme', 'clean');

 

Anyone know where I need to add breakChainOnFailure in the above code. Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/148874-adding-breakchainonfailure/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.