Monday, March 5, 2012

Re: $this->Auth->user()

Because that's what you passed to $this->Auth->login(), instead you should call it without parameters.. if you pass anything to it, it will login any data and save it to the session.

Regards,
--
Thiago Belem
Desenvolvedor
Rio de Janeiro - RJ - Brasil

thiagobelem.net
contato@thiagobelem.net

Skype / gTalk » thiago.belem.web
LinkedIn » br.linkedin.com/in/thiagobelem/pt
Assando Sites
, curso de CakePHP » assando-sites.com.br


2012/3/5 dariob <dario.barila@gmail.com>
Hi,
why $this->Auth->user() return me only username and password and no user.id ???

debug($this->Auth->user());

array( 'User' => array( 'User' => array( 'password' => '*****', 'username' => 'pollo' ) ) )


Where is the user.id???
Maybe it's too late to cook @2.23AM

love 2.1

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: