Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 787 Bytes

File metadata and controls

40 lines (31 loc) · 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