Skip to content

Commit

Permalink
♻️ refactor(security): 更新登录组件,优化浏览器环境下的自动登录和记住我功能
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Jul 23, 2024
1 parent 84efa32 commit 82fca0d
Show file tree
Hide file tree
Showing 10 changed files with 137 additions and 688 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,8 @@ public void send(MessageIn message) {
}
}

@Scheduled(fixedRate = Integer.MAX_VALUE)
@Scheduled(fixedRate = 10000)
public void taskTest() {
log.debug("Clients connect count {}", this.clients.size());
if (this.clients.isEmpty() || !this.clients.containsKey("CommandClient")) {
return;
}
ConnectedClient connectedClient = this.clients.get("CommandClient");
connectedClient.getRequester().route("request.sender")
.data(MessageIn.of(MessageType.COMMAND, "test", "test"))
.retrieveMono(MessageOut.class).subscribe(out ->
log.debug("CommandClient send message result : {}", out));
this.replaySink.tryEmitNext(MessageOut.of(MessageType.COMMAND, "test", "test"));
}
}
2 changes: 1 addition & 1 deletion boot/platform/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spring:
max-idle-time: 10m
validation-query: select 1
sql.init:
mode: always
mode: never
platform: postgres
encoding: utf-8
data.redis:
Expand Down
Loading

0 comments on commit 82fca0d

Please sign in to comment.