From 16c2efc8e143214f755f2a9fa0bdadc5a606f8b3 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Sat, 25 Apr 2020 17:52:54 -0300 Subject: [PATCH] Allow double-quoted multiword apiPassword Strip double quotes from :cli --password arg before it is passed to server. Otherwise, a correct "password" will fail authentication. --- cli/src/main/java/bisq/cli/PasswordCallCredentials.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/main/java/bisq/cli/PasswordCallCredentials.java b/cli/src/main/java/bisq/cli/PasswordCallCredentials.java index 3a03a8a0680..dd7d8b92214 100644 --- a/cli/src/main/java/bisq/cli/PasswordCallCredentials.java +++ b/cli/src/main/java/bisq/cli/PasswordCallCredentials.java @@ -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