mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-25 16:57:18 +08:00
fix(system/auth):修复查询密码过期时间配置,未使用线程池的问题
This commit is contained in:
@@ -110,7 +110,7 @@ public abstract class AbstractLoginHandler<T extends LoginReq> implements LoginH
|
|||||||
return roles;
|
return roles;
|
||||||
}, threadPoolTaskExecutor);
|
}, threadPoolTaskExecutor);
|
||||||
CompletableFuture<Integer> passwordExpirationDaysFuture = CompletableFuture.supplyAsync(() -> optionService
|
CompletableFuture<Integer> passwordExpirationDaysFuture = CompletableFuture.supplyAsync(() -> optionService
|
||||||
.getValueByCode2Int(PASSWORD_EXPIRATION_DAYS.name()));
|
.getValueByCode2Int(PASSWORD_EXPIRATION_DAYS.name()), threadPoolTaskExecutor);
|
||||||
CompletableFuture.allOf(permissionFuture, roleFuture, passwordExpirationDaysFuture);
|
CompletableFuture.allOf(permissionFuture, roleFuture, passwordExpirationDaysFuture);
|
||||||
UserContext userContext = new UserContext(permissionFuture.join(), roleFuture
|
UserContext userContext = new UserContext(permissionFuture.join(), roleFuture
|
||||||
.join(), passwordExpirationDaysFuture.join());
|
.join(), passwordExpirationDaysFuture.join());
|
||||||
|
Reference in New Issue
Block a user