This seems like a trivial thing, but I really can't find where I can change it. I want to use my "Player" model instead of User, but every time I turn on / player / login, it redirects me to the "Missing Controller" page and changes the links to / users / login.
I tried:
public $components = array(
'Session',
'Auth' => array(
'authenticate' => array('all' => array('userModel' => 'Player'))
)
);
and
function beforeFilter() {
$this->Auth->authenticate = array('all' => array('userModel' => 'Player'));
}
EDIT: SOLVED
'loginAction' => array('controller' => 'players', 'action' => 'login')
in the $ components array helped, I think: D
source
share