Cakephp Auth with multiple “Users” tables

后端 未结 4 1280
一生所求
一生所求 2020-12-02 12:47

I would like to know how to deal with only ONE authentification process and \"users\" in multiple tables. I have 4 Users table: users, admins, artists, teamadmins which all

4条回答
  •  醉话见心
    2020-12-02 13:09

    this is also a possibility

    public function beforeFilter() {
        parent::beforeFilter();
        $this->Auth->authenticate = array(
            AuthComponent::ALL => array('userModel' => 'AnotherModel'),
            'Form',
            'Basic'
        );
    }
    

提交回复
热议问题