Provide ability to configure ReCaptcha Service public and private keys via options #4729

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
2 participants
Contributor

richardjennings commented Jun 26, 2013

Provide ability to configure ReCaptcha Service public and private keys via array specification to FormFactory::createForm()

eg:

array(
    'spec' => array(
        'type' => 'Zend\Form\Element\Captcha',
        'name' => 'captcha',
        'options' => array(
            'label' => '',
            'captcha' => array(
                'class' => 'recaptcha',
                'options' => array(
                    'public_key' => 'hshs',
                    'private_key' => penp',
                ),
            ),
        ),
    ),
);

Issue zendframework#4718

richardjennings added some commits Jun 26, 2013

@richardjennings richardjennings Added test to ensure that an options argument to Zend\Captcha\ReCaptc…
…ha constructor with defined 'public_key' and/or 'private_key' key values are set on the ZendService\ReCaptcha\Recaptcha service via setPublicKey() and setPrivateKey().
8461b86
@richardjennings richardjennings Added setPrivateKey() and setPublicKey() calls to ZendService\ReCaptc…
…ha\ReCaptcha service if options provided to Zend\Captcha\ReCaptcha constructor contain a 'private_key' and/or 'public_key' key value.
f4d4c15

mwillbanks was assigned Jun 26, 2013

@mwillbanks mwillbanks added a commit that referenced this pull request Jun 26, 2013

@mwillbanks mwillbanks Merge branch 'hotfix/4729' into develop
Forward port #4729
b3b3145

@gianarb gianarb pushed a commit to zendframework/zend-captcha that referenced this pull request May 15, 2015

@mwillbanks mwillbanks Merge branch 'hotfix/4729' 87209b0

@gianarb gianarb pushed a commit to zendframework/zend-captcha that referenced this pull request May 15, 2015

@mwillbanks mwillbanks Merge branch 'hotfix/4729' into develop 3b2ecb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment