Hello all..
I have used Auth component for check user login..
Insted of users table- I have used table named 'logins' for
authentication. In which there is email and password field is used for
authentication.
in beforeFilter() of app_controller i have written:
****************************
$this->Auth->userModel = 'Login';
$this->Auth->fields = array(
'username' => 'email',
'password' => 'password'
);
$this->Auth->loginAction = array('controller' => 'logins', 'action' =>
'login');
$this->Auth->loginRedirect = array('controller' => 'dashboards',
'action' => 'index');
$this->Auth->logoutRedirect = array('controller' => 'pages', 'action'
=> 'display','home');
**************************
After using this logins table I got problem over redirection after
login..
So, I want to know does Auth component's functionality affects if we
use other table instead of users table???
Also is there need to change the value of autoredirect in /cake/lib/
controllers/components/auth.php for redirection??
waiting for help..
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---