Hey all,

As just a quick update, I finally got this working. The solution was to add 
the recaptcha field to a validation group:

    /**
     * @assert:Type(type="CFP\Bundle\RecaptchaBundle\Model\Recaptcha")
     * @recaptcha:True(groups="Registration")
     */
    protected $recaptcha;

This isn't normally an issue if you aren't using validation groups but since 
FOSUserBundle uses them for validation by default, you have to either alter 
how fields are validated in validation.xml (or in any bundle that extends 
FOSUserBundle) or you need to add the recaptcha to whatever validation 
groups you need it to be a part of. Otherwise it just gets ignored whenever 
you submit the form since it isn't part of the same validation group. The 
first assert statement above is only so I don't have to store the results in 
my user table. Otherwise, Doctrine complains about not having a matching 
field.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to