mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
增加限制共享帐号功能
This commit is contained in:
parent
26deccc36b
commit
ce86bc49a7
@ -17,7 +17,10 @@ class Api extends AuthService
|
|||||||
{
|
{
|
||||||
$token = $this->generateToken($user->id);
|
$token = $this->generateToken($user->id);
|
||||||
|
|
||||||
$this->logoutOtherClients($user->id);
|
/**
|
||||||
|
* demo版本不限制多人登录
|
||||||
|
*/
|
||||||
|
// $this->logoutOtherClients($user->id);
|
||||||
|
|
||||||
$this->createUserToken($user->id, $token);
|
$this->createUserToken($user->id, $token);
|
||||||
|
|
||||||
|
@ -17,7 +17,10 @@ class Home extends AuthService
|
|||||||
{
|
{
|
||||||
$sessionId = $this->session->getId();
|
$sessionId = $this->session->getId();
|
||||||
|
|
||||||
$this->logoutOtherClients($user->id);
|
/**
|
||||||
|
* demo版本不限制多人登录
|
||||||
|
*/
|
||||||
|
// $this->logoutOtherClients($user->id);
|
||||||
|
|
||||||
$this->createUserSession($user->id, $sessionId);
|
$this->createUserSession($user->id, $sessionId);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user