Commit 28d40d16 by 冷斌

fix bug

parent a7303805
......@@ -565,7 +565,7 @@ class PassportModel extends Model
private function cookie($name, $value = false, $timeout = null)
{
$timeout = 86400 * 7;
$timeout = 86400 * 365 * 10;
if ($this->is_weixin) {
if ($value !== false) {
$_SESSION[$name] = $value;
......
......@@ -151,6 +151,7 @@ class PassportAction extends CommonAction
$remember = intval($_POST['login_remember']);
$remember = true;
$openid = $_POST['openid'];
$result = $this->passport->loginLocal($login, $password, $remember);
if (!$result) {
$status = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment