I'm using both sfDoctrineGuard and sfForkedDoctrineApply. I've written a module that permits a logged-in user to create a child-user which inherits a few of the parent's profile settings. It works great, the way it is written, however I have to turn off csrf protection for the whole app (in settings) in order to get it working because when it is turned on, it (rightfully, I might add) detects a csrf attack. So, I need a way to turn it off, or at least catch and remove the validation.
I've tried many techniques, none of which have worked. Including:
$this->disableLocalCSRFProtection();
in the form. Problem is, it's a custom form and the parent config is being called which is injecting the csrf protection.
I've read a few solutions that I think are pointing in the right direction: Symfony 1.4: Custom error message for CSRF in forms but they don't address this specific problem.
Suggestions and solutions are welcome. Thanks in advance.