Skip to content

Commit 737e88a

Browse files
Update RedisHandler.php
1 parent aeb289d commit 737e88a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RedisHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ public static function verifyToken(string $pre, string $client, string $uid, str
6666
{
6767
$cacheKey = $pre . $client. ':'. $uid;
6868
if (!Redis::exists($cacheKey)) {
69-
throw new JwtCacheTokenException('该账号已在其他设备登录,强制下线');
69+
throw new JwtCacheTokenException('身份验证会话已过期,请再次登录!');
7070
}
7171
if (Redis::get($cacheKey) != $token) {
72-
throw new JwtCacheTokenException('身份验证会话已过期,请再次登录!');
72+
throw new JwtCacheTokenException('该账号已在其他设备登录,强制下线');
7373
}
7474
return true;
7575
}

0 commit comments

Comments
 (0)