Re: Cannot login in cake 2.0 app

2012-03-15 Thread murciano


 Hi Ernesto,


When you asked your question you expected a solution?  Or just you wanted 
someone to tell you : I know what is wrong with your code. and then not 
telling you anything more.

Because I came here with the same question as you on the beginning and when 
I see your second reply saying  found the typo, now it's all working ok 
and nothing more it piss me off a little bit. why you don't share your 
knowledge with us... because I think it's what you expected coming here.


On Wednesday, October 12, 2011 9:28:08 AM UTC-4, Ernesto wrote:

 nvm.
 found the typo, now it's all working ok


-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cannot login in cake 2.0 app

2011-11-09 Thread Reggie
Ernesto,
   What was your typo?  I am having trouble with logging in as well.

On Oct 12, 5:28 am, Ernesto e.fanz...@gmail.com wrote:
 nvm.
 found the typo, now it's all working ok

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cannot login in cake 2.0 app

2011-10-12 Thread Ernesto
Hi all

i'm having some troubles with the renewed 2.0 AuthComponent.

please note that i'm not following cake conventions on controllers/models 
naming.
UsersController = UtentiController
UserModel = UtenteModel

i simply cannot login. The $this-Auth-login() returns false every time

here's my component declaration in AppController

var $components = array(
Auth = array(
authenticate = array(
Form = array(
userModel = Utenti.Utente
)
),
loginAction = array(
controller = Utenti,
action = login
)
)
);

my Login method in UtentiController

function login() {

if ($this-request-is('post')) {
if ($this-Auth-login()) {
$this-redirect($this-Auth-redirect());
} else {
//still no code here
}
  }
  $this-layout = login;
}



-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cannot login in cake 2.0 app

2011-10-12 Thread Ernesto
nvm.
found the typo, now it's all working ok

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php