Update Login.php (#1804)

修复勾选下次自动登录,但重启浏览器不生效的bug
This commit is contained in:
ZShijun 2024-09-11 10:59:32 +08:00 committed by GitHub
parent ef9ef2ce45
commit 87d479dd57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,7 @@ class Login extends Users implements ActionInterface
$this->request->get('name'),
$this->request->get('password'),
false,
1 == $this->request->get('name') ? $expire : 0
$this->request->is('remember=1') ? $expire : 0
);
/** 比对密码 */