Commit 7a55aea2 by Qiang Xue

Fixes #4600

parent f59943aa
...@@ -552,7 +552,7 @@ class User extends Component ...@@ -552,7 +552,7 @@ class User extends Component
$session->remove($this->idParam); $session->remove($this->idParam);
$session->remove($this->authTimeoutParam); $session->remove($this->authTimeoutParam);
if ($identity instanceof IdentityInterface) { if ($identity) {
$session->set($this->idParam, $identity->getId()); $session->set($this->idParam, $identity->getId());
if ($this->authTimeout !== null) { if ($this->authTimeout !== null) {
$session->set($this->authTimeoutParam, time() + $this->authTimeout); $session->set($this->authTimeoutParam, time() + $this->authTimeout);
......
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