Pre Merge pull request !449 from PHP-张敏/cherry-pick-1690424186

pull/449/MERGE
PHP-张敏 2023-07-27 02:17:09 +00:00 committed by Gitee
commit 60aefe0981
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ 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();