It has been a while but usually the response would just be empty, even
if I was setting data.

On Nov 8, 3:49 pm, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> All my responses are JSON with true / false then do something like you said.
> I was just curious as everything I seem to have found says Security
> Component will not work so just trying to get an answer on what exactly
> "will not work" means.
>
> ? The component will add the Token / hash but its not checked ?
> ? The whole thing will fail ?
> ? The component does nothing ?
>
> So far in my testing everything still works but if I edit the form with
> firebug it still submits (my validation returns JSON response error ) so I
> guess the security component does nothing. So far no blackhole / whitepage
> errors though.
>
> Just curious is all.
>
> Thanks,
>
> Dave
>
> -----Original Message-----
> From: Miles J [mailto:mileswjohn...@gmail.com]
> Sent: November-08-10 7:58 PM
> To: CakePHP
> Subject: Re: Security Component
>
> Most of the time it will not validate and blackhole (throw a
> whitepage), it was easiest to just disabled it in AJAX calls.
>
> $this->Security->validatePost = false;
>
> We dont need validation in AJAX anyways as we usually need some sort
> of json response.
>
> On Nov 8, 2:18 pm, "Dave Maharaj" <m...@davemaharaj.com> wrote:
> > Ok from what I have read using Security Component with AJAX request will
> not
> > work.
>
> > So I never added it to my app_controller, then today I decided lets see
> what
> > happens so sure enough my forms all get the security div
>
> > <div style="display: none;"><input type="hidden" value="POST"
> > name="_method"><input type="hidden" id="Token1607686768"
> > value="6ed5415b7526befab1ec093cac8ccd45255daba7"
> > name="data[_Token][key]"></div>
>
> > Now just for fun I tested my forms that use ajax and they all submit fine.
>
> > So what I was reading saying it will not work are they saying it will not
> > work as in the security feature will not work (it wont secure the forms)
> or
> > it will not work as in your forms will never submit?
>
> > Dave
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> with their CakePHP related questions.
>
> 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 
> athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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