feat(login): disable multiple device login policy#649
Merged
Conversation
Add login configuration toggle and server-side session tracking. Fixes actiontech/dms-ee#924
PR Reviewer Guide 🔍(Review updated until commit 123ad4e)
|
|
Failed to generate code suggestions for PR |
Seechi-Yolo
approved these changes
Jul 8, 2026
|
Persistent review updated to latest commit 123ad4e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
disable_multiple_loginto login configuration API and persistenceGatewayForwardedHeaderto shared CE gateway codeFixes actiontech/dms-ee#924
Test plan
make EDITION=ce docker_installDescription
新增禁用多设备登录配置
增加登录会话跟踪校验逻辑
更新JWT生成和解析会话ID
调整swagger文档及缓存设计
Diagram Walkthrough
File Walkthrough
15 files
添加DisableMultipleLogin字段到登录配置增加登录会话创建及JWT增强逻辑添加登录会话中间件检查添加网关转发头常量定义更新登录配置结构及缓存逻辑修改企业版登录配置参数签名新增登录会话管理模块更新JWT生成以支持会话ID增加记录与查询登录会话方法更新登录提示返回结构初始化AuthLoginSessionUsecase模块映射登录配置新增字段添加UserLoginSession数据模型实现登录会话存储与查询逻辑增加会话ID支持及解析方法1 files
添加登录会话相关测试函数2 files
更新swagger文档新增接口和字段同步swagger定义及接口描述更新1 files
添加go-cache依赖项