mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-24 14:26:40 +08:00
Pre Merge pull request !55 from ricardo_z_chao/master
This commit is contained in:
commit
7ed8ded007
@ -25,8 +25,8 @@ public class TokenConfig {
|
||||
// 此配置会覆盖 sa-base.yaml 中的配置
|
||||
@Resource
|
||||
public void configSaToken(SaTokenConfig config) {
|
||||
|
||||
config.setActiveTimeout(level3ProtectConfigService.getLoginActiveTimeoutSeconds());
|
||||
long seconds = level3ProtectConfigService.getLoginActiveTimeoutSeconds();
|
||||
config.setActiveTimeout(seconds > 0 ? seconds : -1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user