mirror of
https://github.com/v2board/v2board.git
synced 2025-06-16 06:37:53 +08:00
update: banned user remove session
This commit is contained in:
@ -84,7 +84,7 @@ class AuthService
|
||||
return (array)Cache::get(CacheKey::get("USER_SESSIONS", $this->user->id), []);
|
||||
}
|
||||
|
||||
public function delSession($sessionId)
|
||||
public function removeSession($sessionId)
|
||||
{
|
||||
$cacheKey = CacheKey::get("USER_SESSIONS", $this->user->id);
|
||||
$sessions = (array)Cache::get($cacheKey, []);
|
||||
@ -95,4 +95,10 @@ class AuthService
|
||||
)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public function removeAllSession()
|
||||
{
|
||||
$cacheKey = CacheKey::get("USER_SESSIONS", $this->user->id);
|
||||
return Cache::forget($cacheKey);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user