Skip to content

Commit 248191b

Browse files
authored
Merge pull request #421 from kyonRay/release-3.1.0
<fix>(auth): fix console start without auth bug.
2 parents ce4461c + bb98c19 commit 248191b

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

sdk-core/src/main/java/org/fisco/bcos/sdk/config/model/AccountConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class AccountConfig {
2525
private String accountFileFormat;
2626
private String accountPassword;
2727
private String accountFilePath;
28+
private Boolean authCheck;
2829

2930
public AccountConfig() {}
3031

@@ -43,6 +44,9 @@ public AccountConfig(ConfigProperty configProperty) throws ConfigException {
4344
if (!this.accountFilePath.equals("")) {
4445
this.accountFilePath = ConfigProperty.getConfigFilePath(this.accountFilePath);
4546
}
47+
String authCheck =
48+
ConfigProperty.getValue(configProperty.getAccount(), "authCheck", "false");
49+
this.authCheck = Boolean.valueOf(authCheck);
4650
checkAccountConfig();
4751
}
4852

@@ -99,6 +103,14 @@ public void setAccountPassword(String accountPassword) {
99103
this.accountPassword = accountPassword;
100104
}
101105

106+
public Boolean getAuthCheck() {
107+
return authCheck;
108+
}
109+
110+
public void setAuthCheck(Boolean authCheck) {
111+
this.authCheck = authCheck;
112+
}
113+
102114
@Override
103115
public String toString() {
104116
return "AccountConfig{"

src/test/resources/config-example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ peers=["127.0.0.1:20200", "127.0.0.1:20201"] # The peer list to connect
2222

2323

2424
[account]
25+
authCheck = "false"
2526
keyStoreDir = "account" # The directory to load/store the account file, default is "account"
2627
# accountFilePath = "" # The account file path (default load from the path specified by the keyStoreDir)
2728
accountFileFormat = "pem" # The storage format of account file (Default is "pem", "p12" as an option)

src/test/resources/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ useSMCrypto = "false"
1919
peers=["127.0.0.1:20200", "127.0.0.1:20201"] # The peer list to connect
2020

2121
[account]
22+
authCheck = "false"
2223
keyStoreDir = "account" # The directory to load/store the account file, default is "account"
2324
# accountFilePath = "" # The account file path (default load from the path specified by the keyStoreDir)
2425
accountFileFormat = "pem" # The storage format of account file (Default is "pem", "p12" as an option)

0 commit comments

Comments
 (0)