我已经设置了最新的蛋糕ph设置,当我试图登录用户时,它给了我这个错误
传递给Cake\Http\Session::_overwrite()的参数1必须是数组类型,指定为空
我的密码是
$user = $this->Auth->identify();
if ($user) {
$this->Auth->setUser($user);
return $this->redirect($this->Auth->redirectUrl());
} else {
$this->Flash->error(__('Username or password is incorrect'));
}
当我检查$user时,它给了我已识别的用户,但后来它给了我上述错误。
1条答案
按热度按时间hs1rzwqc1#
在vendor中_overwrite函数中删除Session.php中数组类型,如下所示代码它对我很有用/vendor/cakephp/cakephp/src/Http