mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-04-05 17:37:53 +08:00
docs(sso): 修复 "用户数据同步/迁移" 章节 不正确的代码示例
This commit is contained in:
parent
f221d4ce97
commit
9a53222baa
@ -217,7 +217,8 @@ private void configSso(SaSsoClientConfig ssoClient) {
|
||||
}
|
||||
|
||||
// 进行登录
|
||||
StpUtil.login(user.getId(), ctr.remainSessionTimeout);
|
||||
// 注意此处需要使用 centerId 进行登录,否则该账号将无法正常完成单点注销功能
|
||||
StpUtil.login(centerId, ctr.remainSessionTimeout);
|
||||
StpUtil.getSession().set("user", user);
|
||||
|
||||
// 一切工作完毕,重定向回 back 页面
|
||||
|
Loading…
Reference in New Issue
Block a user