ok, after a lot of tries and errors :) i got it to work,
i was trying a login funtion in my users controller with something
like:
if(!empty($this->data)) {
$this->cleanUpFields();
if (!$this->Auth->login( $this->data))
...
but it didn't work, I have to make an array with the data and pass it
to the Auth->login() (reading the api I understood you would pass
almost anything, but it seems not true :))
this works:
if(!empty($this->data)) {
$this->cleanUpFields();
if (!$this->Auth->login(
array('username'=>$this->data['User']['username'],
'password'=>$this->data['User']['password']))
)
some more troubles with the redirecting, but I'm really happy to reach
this point :)
feel free to add your comments to this post :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---