Re: $_POST populated, but not $this->data
Is the form created through Html helper? Also have you tried $this- >Form->input ? On Oct 19, 5:59 am, tekomp wrote: > When trying to login to my app using auth component and form helper in > 1.3.4, the password value is not being populated in $this->data for > some reason, even though it's set in $_POST fine. Here's debug from > $_POST (first array) and $this->data: > > Array > ( > [_method] => POST > [data] => Array > ( > [User] => Array > ( > [username] => myusername > [password] => password > ) > > ) > > ) > > Array > ( > [User] => Array > ( > [username] => myusername > [password] => > ) > > ) > > The form is very basic with just these inputs: > > echo $form->input('username'); > echo $form->input('password'); > > Any ideas? > > Thanks. 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
Re: $_POST populated, but not $this->data
Nevermind folks - turned out to be an issue with userScope that I didn't have configured properly. On Oct 18, 7:59 pm, tekomp wrote: > When trying to login to my app using auth component and form helper in > 1.3.4, the password value is not being populated in $this->data for > some reason, even though it's set in $_POST fine. Here's debug from > $_POST (first array) and $this->data: > > Array > ( > [_method] => POST > [data] => Array > ( > [User] => Array > ( > [username] => myusername > [password] => password > ) > > ) > > ) > > Array > ( > [User] => Array > ( > [username] => myusername > [password] => > ) > > ) > > The form is very basic with just these inputs: > > echo $form->input('username'); > echo $form->input('password'); > > Any ideas? > > Thanks. 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
$_POST populated, but not $this->data
When trying to login to my app using auth component and form helper in 1.3.4, the password value is not being populated in $this->data for some reason, even though it's set in $_POST fine. Here's debug from $_POST (first array) and $this->data: Array ( [_method] => POST [data] => Array ( [User] => Array ( [username] => myusername [password] => password ) ) ) Array ( [User] => Array ( [username] => myusername [password] => ) ) The form is very basic with just these inputs: echo $form->input('username'); echo $form->input('password'); Any ideas? Thanks. 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