Skip to content

Commit 8d6b4a4

Browse files
author
qbhy
committed
feat:优化sso的login
1 parent cdbd30f commit 8d6b4a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guard/SsoGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function login(Authenticatable $user, string $client = null)
5151

5252
if (! empty($previousToken = $this->redis->hGet($redisKey, $client))) {
5353
// 如果存在上一个 token,就给他拉黑,也就是强制下线
54-
$this->logout($token);
54+
$this->getJwtManager()->addBlacklist($token);
5555
$this->redis->hDel($redisKey, $client);
5656
$this->eventDispatcher->dispatch(new ForcedOfflineEvent($user, $client));
5757
}

0 commit comments

Comments
 (0)