Commit 11b75ae1 by 冷斌

fix bug

parent 7551d8ca
...@@ -429,7 +429,11 @@ class PassportModel extends Model ...@@ -429,7 +429,11 @@ class PassportModel extends Model
return $user; return $user;
} else { } else {
return $user['uid'] > 0 ? $this->_recordLogin($user['uid'], $is_remember_me) : false; if ($user['uid'] > 0) {
$this->_recordLogin($user['uid'], $is_remember_me);
return $user;
}
return false;
} }
} }
......
...@@ -162,6 +162,7 @@ class PassportAction extends CommonAction ...@@ -162,6 +162,7 @@ class PassportAction extends CommonAction
var_dump($result); var_dump($result);
die; die;
if (!$result) { if (!$result) {
$status = 0; $status = 0;
$info = $this->passport->getError(); $info = $this->passport->getError();
......
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