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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to