ullright captcha

Setup

  • apt-get install php5-curl

  • Register a key for your domain (+ testinstance in app.local.yml): https://www.google.com/recaptcha

  • or create v2 keys at https://www.google.com/recaptcha/admin#list

  • Configure it in apps/frontend/config/app.yml
    •   recaptcha:
          public_key:     6Le...
          private_key:    6Le....
  • Configure the widget. For example for registration in
    apps/frontend/lib/generator/columnConfigCollection/UllUserColumnConfigCollection.class.php
    <?php
    
    class UllUserColumnConfigCollection extends BaseUllUserColumnConfigCollection
    {
      public function adjustColumnConfigForEditAccount(UllUser $user)
      {
        ...
    
        // For create
        if (!$user->exists())
        {
          // captcha
          $this->create('captcha')
            ->setLabel(__('Captcha', null, 'ullCoreMessages'))
            ->setMetaWidgetClassName('ullMetaWidgetCaptcha')
          ;          
        }
      }
    }
    

  •  

Recherche

Uses sfWidgetFormReCaptcha from sfFormExtraPlugin

Documentation: http://symfony.com/blog/spice-up-your-forms-with-some-nice-widgets-and-validators

Recaptcha Site: https://www.google.com/recaptcha

Register a key for your domain there