fix(system/auth):修复查询密码过期时间配置,未使用线程池的问题

This commit is contained in:
2025-09-10 20:44:36 +08:00
parent 5e6290f5c5
commit 8bcf27c48e

View File

@@ -110,7 +110,7 @@ public abstract class AbstractLoginHandler<T extends LoginReq> implements LoginH
return roles;
}, threadPoolTaskExecutor);
CompletableFuture<Integer> passwordExpirationDaysFuture = CompletableFuture.supplyAsync(() -> optionService
.getValueByCode2Int(PASSWORD_EXPIRATION_DAYS.name()));
.getValueByCode2Int(PASSWORD_EXPIRATION_DAYS.name()), threadPoolTaskExecutor);
CompletableFuture.allOf(permissionFuture, roleFuture, passwordExpirationDaysFuture);
UserContext userContext = new UserContext(permissionFuture.join(), roleFuture
.join(), passwordExpirationDaysFuture.join());