mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
demo版本不限制多人登录
This commit is contained in:
parent
2ca092b4e2
commit
4f7a1e9fdd
@ -24,8 +24,6 @@ class Api extends AuthService
|
|||||||
*/
|
*/
|
||||||
// $this->logoutOtherClients($user->id);
|
// $this->logoutOtherClients($user->id);
|
||||||
|
|
||||||
$this->logoutOtherClients($user->id);
|
|
||||||
|
|
||||||
$this->createUserToken($user->id, $token, $lifetime);
|
$this->createUserToken($user->id, $token, $lifetime);
|
||||||
|
|
||||||
$cache = $this->getCache();
|
$cache = $this->getCache();
|
||||||
|
@ -19,8 +19,6 @@ class Home extends AuthService
|
|||||||
|
|
||||||
$lifetime = $this->getSessionLifetime();
|
$lifetime = $this->getSessionLifetime();
|
||||||
|
|
||||||
$this->logoutOtherClients($user->id);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* demo版本不限制多人登录
|
* demo版本不限制多人登录
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user