Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ShaBaoFa
Copy link
Contributor

@ShaBaoFa ShaBaoFa commented Jul 4, 2024

LoginListener.php: 修复因为多点登录复用同一个token导致该账号最近一次登录的设备登出就无法获得正确的用户在线情况
SystemUserService.php: 1. 重写 token-key 正则匹配 2. kickUser 保证获取到所有token,一次性全部下线。 3. hasTokenBlack 只判断传入token所在scene的情况,否则会导致判断多重scene而导致在线用户监控列表出错。

SystemUserService.php: 1. 重写 token-key 正则匹配 2. kickUser 保证获取到所有token,一次性全部下线。 3. hasTokenBlack 只判断传入token所在scene的情况,否则会导致判断多重scene而导致在线用户监控列表出错。
@boring-cyborg boring-cyborg bot added the System label Jul 4, 2024
Copy link

boring-cyborg bot commented Jul 4, 2024

Thanks for opening this pull request! Please check out our contributing guidelines. 感谢您开启此拉取请求!请查看我们的 贡献者指南

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. bug labels Jul 4, 2024
@ShaBaoFa ShaBaoFa changed the title LoginListener.php: 修复因为多点登录复用同一个token导致该账号最近一次登录的设备登出就无法获得正确的用户在线情况 FIX: 修复多点登录模式下,token复用问题和在线用户监控列表问题 Jul 4, 2024
@ShaBaoFa ShaBaoFa changed the title FIX: 修复多点登录模式下,token复用问题和在线用户监控列表问题 FIX: 修复多点登录模式下,token缓存复用 和 在线用户监控列表问题 Jul 4, 2024
@zds-s zds-s merged commit cf6eddd into mineadmin:master Jul 4, 2024
Copy link

boring-cyborg bot commented Jul 4, 2024

Awesome work, congrats on your first merged pull request! 祝贺你的第一个拉取请求被合并!

@zds-s
Copy link
Member

zds-s commented Jul 4, 2024

感谢

zds-s added a commit that referenced this pull request Jul 9, 2024
* Fix(filterExecuteAttributes): Utilizing memory address pointers (#294)

* LoginListener.php: 修复因为多点登录复用同一个token导致该账号最近一次登录的设备登出就无法获得正确的用户在线情况 (#295)

SystemUserService.php: 1. 重写 token-key 正则匹配 2. kickUser 保证获取到所有token,一次性全部下线。 3. hasTokenBlack 只判断传入token所在scene的情况,否则会导致判断多重scene而导致在线用户监控列表出错。

* FIX : 用户信息password字段隐藏.避免安全隐患. (#297)

* LoginListener.php: 修复因为多点登录复用同一个token导致该账号最近一次登录的设备登出就无法获得正确的用户在线情况
SystemUserService.php: 1. 重写 token-key 正则匹配 2. kickUser 保证获取到所有token,一次性全部下线。 3. hasTokenBlack 只判断传入token所在scene的情况,否则会导致判断多重scene而导致在线用户监控列表出错。

* fix 用户返回信息会出现password字段,虽然是加密过的字段,但依旧存在安全隐患。故隐藏。

* UserAuthService.php 修复因为隐藏password导致user模型 toarray之后无法获取password导致登录流程出错的问题

* UserAuthService.php fix:获取主键value 而不是主键 key (Tab 按快了)

* Fix: 优化 is_in_container 函数(#298)

---------

Co-authored-by: PeopleSea <[email protected]>
Co-authored-by: ShaBaoFa <[email protected]>
Co-authored-by: clq321 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug size:M This PR changes 30-99 lines, ignoring generated files. System

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants