如何在CakePHP的身份验证插件中更改find​​er模型

时间:2019-04-06 23:11:12

标签: authentication cakephp

在内置的CakePHP AuthComponent中,我可以通过以下方式在AppController.php中动态更改userModelfinder

$this->Auth->setConfig('authenticate.Form.finder', 'Custom');

但是,在新的身份验证插件(https://github.com/cakephp/authentication/blob/master/docs/Migration-from-the-AuthComponent.md#migrate-authcomponent-settings)中,我在Application.php中设置了userModelfinder

现在,如何在AppController.php中更改这些变量?

0 个答案:

没有答案