Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

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

Closed
wants to merge 2 commits into from

Conversation

richardjennings
Copy link
Contributor

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 #4718

…ha constructor with defined 'public_key' and/or 'private_key' key values are set on the ZendService\ReCaptcha\Recaptcha service via setPublicKey() and setPrivateKey().
…ha\ReCaptcha service if options provided to Zend\Captcha\ReCaptcha constructor contain a 'private_key' and/or 'public_key' key value.
@ghost ghost assigned mwillbanks Jun 26, 2013
mwillbanks pushed a commit that referenced this pull request Jun 26, 2013
gianarb pushed a commit to zendframework/zend-captcha that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-captcha that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants