I am using the Security component, and it works great, except when I
load a form via AJAX, the token fields are not being written in the
form.  I'm using the form helper.  Also note the action that renders
the form is in a different controller, so not sure if that's part of
the problem.

I can use the blackhole callback to circumvent the issue by
determining controller name and action, but would prefer to keep
security component enabled for these forms if possible.

The reason for such an approach is this...
Basically a blog with comments, but product developers want people to
write their blog post, then login if the email address they provide
exists in our database.  Therefore I have a Posts controller with a
form asking for email and comment.  If email address is in database,
load a Users controller action to login by providing password.
Otherwise, create a light registration process that also resides in
the Users controller.

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

Reply via email to