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

Commit41e2af2

Browse files
authored
Merge pull request#1642 from lowcoder-org/hide_api_key
Show api key only on the creation
2 parentsd90e28c +5bdedc9 commit41e2af2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

‎.github/workflows/sonarcloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
env:
3131
GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }}# Needed to get PR information, if any
3232
SONAR_TOKEN:${{ secrets.SONAR_TOKEN }}
33-
SONAR_SCANNER_OPTS:"-Dsonar.javascript.node.maxspace=8192 -Xmx512m"
33+
SONAR_SCANNER_OPTS:"-Dsonar.javascript.node.maxspace=8192 -Xmx8192m"

‎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