fix(sso): User类的使用问题

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-04-29 17:59:50 +08:00
parent aea934c4c2
commit 5cc6e6965b

View File

@@ -91,7 +91,7 @@ class Assertion
$user = new User($user);
// 更新
$token = $this->authentication->generate(new User($user));
$token = $this->authentication->generate($user);
// 记录映射
$key = "{$redis_prefix}user:token_map:{$user['uid']}";
if ($allow_multi_online) {
@@ -106,7 +106,7 @@ class Assertion
return $this->response->redirect($url, RFC7231::FOUND);
}
return $user->toResponse();
return $user;
}
/**