首页 > 解决方案 > CakePHP 4 手动登录用户

问题描述

我正在尝试手动登录用户。

以前这是通过调用完成的$this->Auth->login()

我找不到使用身份验证插件的方法。

标签: authenticationcakephp-4.x

解决方案



 $this->Authentication->setIdentity($this->request->getData());

https://github.com/cakephp/authentication/issues/370


推荐阅读