Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

切换部门当前用户信息未更新 #663

Closed
klniu opened this issue Oct 23, 2019 · 3 comments
Closed

切换部门当前用户信息未更新 #663

klniu opened this issue Oct 23, 2019 · 3 comments

Comments

@klniu
Copy link
Contributor

@klniu klniu commented Oct 23, 2019

版本号:

2.1.1

问题描述:

用户在界面点击切换部门后,后台将用户的数据库信息内的org_code更新了,但因为redis里缓存没有更新,因此造成

 (LoginUser)SecurityUtils.getSubject().getPrincipal();

获取的仍是过期的信息,而且用户即使退出也无效,建议在更换部门时清除当前用户的信息缓存

截图&代码:

友情提示: 未按格式要求发帖,会直接删掉。

@klniu klniu changed the title 切换部门 切换部门当前用户信息未更新 Oct 23, 2019
@zhangdaiscott

This comment has been minimized.

Copy link
Owner

@zhangdaiscott zhangdaiscott commented Oct 23, 2019

了解,非常感谢

@liudonghua123

This comment has been minimized.

Copy link
Contributor

@liudonghua123 liudonghua123 commented Oct 27, 2019

我是这样修改的解决这个问题

  1. 切换部门后,清除相关缓存
    image

  2. 用户退出,清楚相关缓存
    image

@zhangdaiscott

This comment has been minimized.

Copy link
Owner

@zhangdaiscott zhangdaiscott commented Oct 27, 2019

已修复,下个版本发布

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.