修复后台修改个人资料导致退出的问题

pull/462/MERGE
Karson 2024-03-14 19:52:35 +08:00
parent 17eb182063
commit 131ef803d1
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class Profile extends Backend
$admin->save($params);
//因为个人资料面板读取的Session显示修改自己资料后同时更新Session
Session::set("admin", $admin->toArray());
Session::set("admin.safecode", $this->auth->getEncryptSafecode($admin));
$this->success();
}
$this->error();