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版本不限制多人登录 */