How use auth login in different model in cakephp
public $components = array('Session', 'Cookie',
'Auth' => array(
'authenticate' => array('Form' => array( 'userModel' => 'Admin',
'fields' => array(
'username' => 'username',
'password' => 'password'
)
)
),
),
);
in this code Admin is a differnt model by defualt auth component works for user model
0 Comment(s)