mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 19:17:25 +08:00
feat: SaLoginParameter 支持 maxLoginCount 配置
This commit is contained in:
@@ -29,6 +29,7 @@ public class TestController {
|
||||
StpUtil.login(id, new SaLoginParameter()
|
||||
.setIsConcurrent(true)
|
||||
.setIsShare(false)
|
||||
.setMaxLoginCount(4)
|
||||
);
|
||||
return SaResult.ok("登录成功");
|
||||
}
|
||||
|
Reference in New Issue
Block a user