Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (31 sloc) 787 Bytes

ReCaptcha Field (create acount)

Minimal configuration:

# app/config/config.yml
genemu_form:
    recaptcha:
        public_key:  `your public key is required`
        private_key: `your private key is required`

Hardcoding the captcha value (for testing)

You can define a static code for your test environment:

# app/config/config_test.yml
genemu_form:
    recaptcha:
        validation:
            code: 1234

Default Usage:

<?php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        // ...
        ->add('captcha', 'genemu_recaptcha');
}

Extra:

Configuration

You can’t perform that action at this time.