Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-06-06 Thread Ita
Hello, I have just encountered this problem. I'm trying to post the form via ajax. I just can't seem to get around the problem. I used form-create together with ajax-submit or plain HTML form tag with ajax-submit or ajax-form all of them fail in the security component. What combination should I

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-06-06 Thread Ita
OK - just an update. The problem is not with the form-create + ajax-submit but rather with the form-XXX_Control. When producing the security token at least form-textarea is not hashed correctly. To get around it I found I can produce a text area using: echo $form-input('message',array('label' =

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-24 Thread Mika
Hey Larry, It was more that I developed the site with 1.2 while it was still changing a lot so I decided to keep the forms pure. I will have a look at converting them to helper calls and see how well it works with what I have already. One comment though is that you really should make the

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-23 Thread Mika
Hey Larry, Could you maybe explain the process if we use hand-written forms as I do not use the Forms helper at all. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-23 Thread Larry E. Masters aka PhpNut
Mika, If you are using hand-written forms you will need to follow the example here: https://trac.cakephp.org/changeset/4978 to remove any fields that are added by hand. Note when the security component is used you should still use the $form-create(); and the $form-submit(); if not your forms

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-07 Thread Marcus T. Jaschen
Larry E. Masters aka PhpNut wrote: Any ideas why three Tokens are generated and why two of them have different hashes? Marcus I would need to see the view code related to that output. Ok, here comes the view code in a better form ... ;) http://bin.cakephp.org/saved/18415

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-04 Thread Marcus T. Jaschen
dericknwq wrote: I remember asking PhpNut about this and he says it was for security. Right now, in the startup() of the Security component __validatePost is called for each request that is POSTed. And __validatePost requires a Token in your POST, so I presume that's that.

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-04 Thread dericknwq
Marcus, one of them is the token key as shown on the name attribute while the other is a token to verify that all fields from your form are receive on the controller end. On May 4, 2:37 pm, Marcus T. Jaschen [EMAIL PROTECTED] wrote: dericknwq wrote: I remember asking PhpNut about this and he

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-04 Thread Larry E. Masters aka PhpNut
Any ideas why three Tokens are generated and why two of them have different hashes? Marcus I would need to see the view code related to that output. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-04 Thread Marcus T. Jaschen
Larry E. Masters aka PhpNut wrote: Any ideas why three Tokens are generated and why two of them have different hashes? Marcus I would need to see the view code related to that output. Ok, here we go: This is the View code for the edit form: ?php

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-04 Thread Samuel DeVore
next time please post code in the paste bin http://bin.cakephp.org/ this has a couple of advantages. 1. it retains formatting (code pasted in email looks like poop) which makes it easier to read and easier for human parsing. 2. It allows people who want to help you a way to make changes with

Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread Marcus T. Jaschen
Hi there, in the last days the SecurityComponent was refactored (rev 4972) After updating to the latest SVN version of CakePHP every Form I submit (AJAX oder classic POST-Request) gets blackholed by the SecurityComponent. I've inlcuded the SecurityComponent in the controllers with var

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread gwoo
What are you using to create your forms? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread Aaron Shafovaloff
I have had this same problem. On May 3, 9:25 am, Marcus T. Jaschen [EMAIL PROTECTED] wrote: Hi there, in the last days the SecurityComponent was refactored (rev 4972) After updating to the latest SVN version of CakePHP every Form I submit (AJAX oder classic POST-Request) gets blackholed by

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread Aaron Shafovaloff
... even when using the form helper to create forms. On May 3, 3:16 pm, Aaron Shafovaloff [EMAIL PROTECTED] wrote: I have had this same problem. On May 3, 9:25 am, Marcus T. Jaschen [EMAIL PROTECTED] wrote: Hi there, in the last days the SecurityComponent was refactored (rev 4972)

Re: Changes to SecurityComponent - every form I submit gets blackholed

2007-05-03 Thread dericknwq
I remember asking PhpNut about this and he says it was for security. Right now, in the startup() of the Security component __validatePost is called for each request that is POSTed. And __validatePost requires a Token in your POST, so I presume that's that.