From 87d479dd573967a54f2470c805b3b02e353836b5 Mon Sep 17 00:00:00 2001 From: ZShijun <35375949+ZShijun@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:59:32 +0800 Subject: [PATCH] Update Login.php (#1804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复勾选下次自动登录,但重启浏览器不生效的bug --- var/Widget/Login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Login.php b/var/Widget/Login.php index b7cfbabbee..4f54ff0bc4 100644 --- a/var/Widget/Login.php +++ b/var/Widget/Login.php @@ -64,7 +64,7 @@ public function action() $this->request->get('name'), $this->request->get('password'), false, - 1 == $this->request->get('name') ? $expire : 0 + $this->request->is('remember=1') ? $expire : 0 ); /** 比对密码 */