From 7d63ce56e5207ca56ec8fb33777ebf8350aa1015 Mon Sep 17 00:00:00 2001 From: BinFinn <2244137744@qq.com> Date: Sat, 15 Jul 2023 05:29:37 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20068a0ed=20from=20https://gitee.com/zhan?= =?UTF-8?q?g-mintext/fastadmin/pulls/446=20=E4=BF=AE=E5=A4=8D=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA=E8=B5=84=E6=96=99?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=AE=89=E5=85=A8=E7=A0=81=E4=B8=A2=E5=A4=B1?= =?UTF-8?q?=E5=BC=95=E5=8F=91=E7=9A=84=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit issue:关于fastadmin V1.4.0.20230711版本 后台更改个人信息之后 直接强制掉线 需要重新登录操作的反馈 https://gitee.com/karson/fastadmin/issues/I7KM8X#note_19681452_link --- application/admin/controller/general/Profile.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/admin/controller/general/Profile.php b/application/admin/controller/general/Profile.php index feffa9950..8c0135e6f 100644 --- a/application/admin/controller/general/Profile.php +++ b/application/admin/controller/general/Profile.php @@ -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(); -- Gitee