summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-01-26 17:01:27 +0100
committerMS <ms@taler.net>2021-01-26 17:01:27 +0100
commit58181b7702db1d082e772d85197a36c1fd6bf706 (patch)
treede444d0929e91dfe048ef40986113b60a267d9d5
parentc6cbdfe23727d6a6cce74ea18ae65db211781c5e (diff)
downloadlibeufin-58181b7702db1d082e772d85197a36c1fd6bf706.tar.gz
libeufin-58181b7702db1d082e772d85197a36c1fd6bf706.tar.bz2
libeufin-58181b7702db1d082e772d85197a36c1fd6bf706.zip
test CLI password change
-rwxr-xr-xcli/bin/libeufin-cli3
-rwxr-xr-xcli/setup-template.sh4
2 files changed, 3 insertions, 4 deletions
diff --git a/cli/bin/libeufin-cli b/cli/bin/libeufin-cli
index 7ae7237a..10ca2f46 100755
--- a/cli/bin/libeufin-cli
+++ b/cli/bin/libeufin-cli
@@ -87,7 +87,6 @@ def list_users(obj):
@users.command(help="Change user's password")
-@click.argument("username")
@click.option(
"--new-password",
help="New password",
@@ -96,7 +95,7 @@ def list_users(obj):
confirmation_prompt=True,
)
@click.pass_obj
-def change_password(obj, username, new_password):
+def change_password(obj, new_password):
url = urljoin(obj.nexus_base_url, f"/users/password")
try:
body = dict(newPassword=new_password)
diff --git a/cli/setup-template.sh b/cli/setup-template.sh
index 09e93b0d..511850f7 100755
--- a/cli/setup-template.sh
+++ b/cli/setup-template.sh
@@ -105,7 +105,7 @@ libeufin-cli \
# Bootstrapping such connection.
echo Bootstrapping the bank connection
libeufin-cli \
- connections sync $NEXUS_BANK_CONNECTION_NAME
+ connections connect $NEXUS_BANK_CONNECTION_NAME
# Download bank accounts.
echo Download bank accounts
@@ -125,7 +125,7 @@ cat << EOF
Bank connection name: $(tput bold)$NEXUS_BANK_CONNECTION_NAME$(tput sgr0)
Bank account, imported name: $(tput bold)$ACCOUNT_NAME_AT_NEXUS$(tput sgr0)
Bank account, native name: $(tput bold)$ACCOUNT_NAME$(tput sgr0)
-env-setter: $(tput bold)export NEXUS_BASE_URL=http://localhost:5001/ NEXUS_USERNAME=$NEXUS_USER NEXUS_PASSWORD=$NEXUS_PASSWORD LIBEUFIN_SANDBOX_URL=$SANDBOX_URL$(tput sgr0)
+env-setter: $(tput bold)export LIBEUFIN_NEXUS_URL=http://localhost:5001/ LIBEUFIN_NEXUS_USERNAME=$NEXUS_USER LIBEUFIN_NEXUS_PASSWORD=$NEXUS_PASSWORD LIBEUFIN_SANDBOX_URL=$SANDBOX_URL$(tput sgr0)
EOF