modify
This commit is contained in:
+3
-3
@@ -461,15 +461,15 @@ mlAZUEjsoaT9vjvjGTxl3uCm0TX5KTgtSJIt2kA1tYVjQef+/iZTHxY=
|
|||||||
*/
|
*/
|
||||||
public function expireRefresh($token = null, $source = null)
|
public function expireRefresh($token = null, $source = null)
|
||||||
{
|
{
|
||||||
if (!isset($this->data['token'])) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!empty($token)) {
|
if (!empty($token)) {
|
||||||
$this->data['token'] = $token;
|
$this->data['token'] = $token;
|
||||||
}
|
}
|
||||||
if (!empty($source)) {
|
if (!empty($source)) {
|
||||||
$this->data['source'] = $source;
|
$this->data['source'] = $source;
|
||||||
}
|
}
|
||||||
|
if (!isset($this->data['token'])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$key = $this->authKey($this->getSource(), $this->data['token']);
|
$key = $this->authKey($this->getSource(), $this->data['token']);
|
||||||
$this->getRedis()->expire($key, $this->timeout);
|
$this->getRedis()->expire($key, $this->timeout);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user