Skip to content

Instantly share code, notes, and snippets.

@Saeven
Created March 24, 2014 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saeven/9740815 to your computer and use it in GitHub Desktop.
Save Saeven/9740815 to your computer and use it in GitHub Desktop.
Where oh where does the break_chain_on_failure go?
$recaptcha = new Captcha\ReCaptcha();
$recaptcha
->setOption( 'theme', $theme )
->setPubKey( '6Ld-&hl='.$lang)
->setPrivKey( '6Ld-' )
->setMessage( _( "Correctly repeat the text in the image, in the box beneath it" ) );
$captcha = new Element\Captcha( 'captcha' );
$captcha
->setOptions( array( 'break_chain_on_failure' => true ) )
->setCaptcha( $recaptcha )
->setLabel( 'Please verify that you are human' );
$this->add( $captcha );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment