Created
March 24, 2014 14:10
-
-
Save Saeven/9740815 to your computer and use it in GitHub Desktop.
Where oh where does the break_chain_on_failure go?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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