mirror of
http://124.126.16.154:8888/singularity/hyperf-saml.git
synced 2026-01-15 07:35:07 +08:00
fix(sp.assertion): 修复缓存用户信息失败的问题
Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
@@ -91,9 +91,9 @@ class Assertion
|
||||
$user = new User($user);
|
||||
|
||||
// 更新
|
||||
$token = $this->authentication->generate($user);
|
||||
$token = $this->authentication->generate(new User($user));
|
||||
// 记录映射
|
||||
$key = "{$redis_prefix}user:token_map:$user->uid";
|
||||
$key = "{$redis_prefix}user:token_map:{$user['uid']}";
|
||||
if ($allow_multi_online) {
|
||||
$this->redis->hSet($key, $user->originToken, $token);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user