Skip to content

Commit

Permalink
Update Login.php (typecho#1804)
Browse files Browse the repository at this point in the history
修复勾选下次自动登录,但重启浏览器不生效的bug
  • Loading branch information
ZShijun authored Sep 11, 2024
1 parent ef9ef2c commit 87d479d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/Widget/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

/** 比对密码 */
Expand Down

0 comments on commit 87d479d

Please sign in to comment.