Im sorry to bring this up again but Im still not able to do a
functional test on a form with csrf enabled.

--

sfForm::enableCSRFProtection('tokentoken');
$browser = new sfTestBrowser();

$f = new sfForm();
$token = $f->getCSRFToken('tokentoken');

$browser->post('user/signin')->
setField('signin[username]','[EMAIL PROTECTED]')->
setField('signin[password]','12345')->
setField('signin[_csrf_token]',$token)->
click('Signin')->checkResponseElement('body', '/Welcome/');

---

Im still getting: csrf token: CSRF attack detected.


Any ideas ?

Thanks
Joao
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to