1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

增加限制共享帐号功能

This commit is contained in:
xiaochong0302 2021-01-02 14:41:43 +08:00
parent 26deccc36b
commit ce86bc49a7
2 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,10 @@ class Api extends AuthService
{
$token = $this->generateToken($user->id);
$this->logoutOtherClients($user->id);
/**
* demo版本不限制多人登录
*/
// $this->logoutOtherClients($user->id);
$this->createUserToken($user->id, $token);

View File

@ -17,7 +17,10 @@ class Home extends AuthService
{
$sessionId = $this->session->getId();
$this->logoutOtherClients($user->id);
/**
* demo版本不限制多人登录
*/
// $this->logoutOtherClients($user->id);
$this->createUserSession($user->id, $sessionId);