Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c9b2d0

Browse files
author
Thomasr
committed
Show api key only on the creation
1 parentd302efe commit7c9b2d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/service/AuthenticationApiServiceImpl.java‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,10 @@ public Flux<APIKey> findAPIKeys() {
348348
returnsessionUserService.getVisitor()
349349
.flatMapIterable(user ->
350350
newArrayList<>(user.getApiKeysList())
351-
);
351+
)
352+
.doOnNext(apiKey -> {
353+
apiKey.setToken(apiKey.getToken().substring(0,6) +"*************" +apiKey.getToken().substring(apiKey.getToken().length() -6));
354+
});
352355
}
353356

354357
privateMono<Void>removeTokensByAuthId(StringauthId) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp