fix: dummySession 인자 수정정
This commit is contained in:
@@ -82,7 +82,7 @@ class DummySession extends Session
|
|||||||
return Util::array_get($_SESSION[$name]);
|
return Util::array_get($_SESSION[$name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function login(int $userID, string $userName, int $grade, bool $reqOTP, ?string $tokenValidUntil, array $acl): Session
|
public function login(int $userID, string $userName, int $grade, bool $reqOTP, ?string $tokenValidUntil, ?int $tokenID, array $acl): Session
|
||||||
{
|
{
|
||||||
$this->set('userID', $userID);
|
$this->set('userID', $userID);
|
||||||
$this->set('userName', $userName);
|
$this->set('userName', $userName);
|
||||||
@@ -92,6 +92,7 @@ class DummySession extends Session
|
|||||||
$this->set('acl', $acl);
|
$this->set('acl', $acl);
|
||||||
$this->set('reqOTP', $reqOTP);
|
$this->set('reqOTP', $reqOTP);
|
||||||
$this->set('tokenValidUntil', $tokenValidUntil);
|
$this->set('tokenValidUntil', $tokenValidUntil);
|
||||||
|
$this->set('tokenID', $tokenID);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,6 +118,7 @@ class DummySession extends Session
|
|||||||
$this->set('reqOTP', null);
|
$this->set('reqOTP', null);
|
||||||
$this->set('time', time());
|
$this->set('time', time());
|
||||||
$this->set('lastMsgGet', null);
|
$this->set('lastMsgGet', null);
|
||||||
|
$this->set('tokenID', null);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user