Skip to content

Commit

Permalink
Allow double-quoted multiword apiPassword
Browse files Browse the repository at this point in the history
Strip double quotes from :cli --password arg before it is passed
to server.  Otherwise, a correct "password" will fail authentication.
  • Loading branch information
ghubstan committed Apr 25, 2020
1 parent d923d07 commit 16c2efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/java/bisq/cli/PasswordCallCredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PasswordCallCredentials extends CallCredentials {
public PasswordCallCredentials(String passwordValue) {
if (passwordValue == null)
throw new IllegalArgumentException(format("'%s' header value must not be null", PASSWORD_KEY));
this.passwordValue = passwordValue;
this.passwordValue = passwordValue.replace("\"", "");
}

@Override
Expand Down

0 comments on commit 16c2efc

Please sign in to comment.