From 4f7a1e9fdd2815ab0c57b818d881aaa1a98a9e62 Mon Sep 17 00:00:00 2001 From: koogua Date: Thu, 4 Mar 2021 10:26:25 +0800 Subject: [PATCH] =?UTF-8?q?demo=E7=89=88=E6=9C=AC=E4=B8=8D=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=A4=9A=E4=BA=BA=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Auth/Api.php | 2 -- app/Services/Auth/Home.php | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/Services/Auth/Api.php b/app/Services/Auth/Api.php index 5796944c..13c03358 100644 --- a/app/Services/Auth/Api.php +++ b/app/Services/Auth/Api.php @@ -24,8 +24,6 @@ class Api extends AuthService */ // $this->logoutOtherClients($user->id); - $this->logoutOtherClients($user->id); - $this->createUserToken($user->id, $token, $lifetime); $cache = $this->getCache(); diff --git a/app/Services/Auth/Home.php b/app/Services/Auth/Home.php index 21c31159..c29d8976 100644 --- a/app/Services/Auth/Home.php +++ b/app/Services/Auth/Home.php @@ -19,8 +19,6 @@ class Home extends AuthService $lifetime = $this->getSessionLifetime(); - $this->logoutOtherClients($user->id); - /** * demo版本不限制多人登录 */