mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-05-04 04:37:56 +08:00
Merge branch 'dev' of github.com:dromara/sa-token into dev
This commit is contained in:
commit
418172362a
@ -506,12 +506,8 @@ public class StpLogic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<TokenSign> list = session.tokenSignListCopyByDevice(device);
|
List<TokenSign> list = session.tokenSignListCopyByDevice(device);
|
||||||
// 遍历操作
|
// 遍历操作,只操作前n条
|
||||||
for (int i = 0; i < list.size(); i++) {
|
for (int i = 0; i < list.size() - maxLoginCount; i++) {
|
||||||
// 只操作前n条
|
|
||||||
if(i >= list.size() - maxLoginCount) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
// 清理: token签名、token最后活跃时间
|
// 清理: token签名、token最后活跃时间
|
||||||
String tokenValue = list.get(i).getValue();
|
String tokenValue = list.get(i).getValue();
|
||||||
session.removeTokenSign(tokenValue);
|
session.removeTokenSign(tokenValue);
|
||||||
|
20270
sa-token-demo/sa-token-demo-sso-client-vue2/package-lock.json
generated
20270
sa-token-demo/sa-token-demo-sso-client-vue2/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -14,9 +14,9 @@
|
|||||||
"vue-router": "^3.6.5"
|
"vue-router": "^3.6.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.4.6",
|
"@vue/cli-plugin-babel": "~5.0.8",
|
||||||
"@vue/cli-plugin-eslint": "~4.4.6",
|
"@vue/cli-plugin-eslint": "~5.0.8",
|
||||||
"@vue/cli-service": "~4.4.6",
|
"@vue/cli-service": "~5.0.8",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"eslint": "^6.7.2",
|
"eslint": "^6.7.2",
|
||||||
"eslint-plugin-vue": "^6.2.2",
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-web</artifactId>
|
<artifactId>spring-web</artifactId>
|
||||||
<version>5.3.7</version>
|
<version>6.0.0</version>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user