aboutsummaryrefslogtreecommitdiff
path: root/contrib/taler-bank-manage-testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-30 22:12:02 +0100
committerChristian Grothoff <christian@grothoff.org>2020-10-30 22:17:37 +0100
commita79b67c726e7a2d2ef44102e883b98423d129fbd (patch)
tree16237b1a8cc14040b4c1d1b1fe31bab9a3129f25 /contrib/taler-bank-manage-testing
parentafc72f1f4752340bfd119e3619a79fa2743d6478 (diff)
log more nicely if authentication failed; do use new changepassword_unsafe to set bank pw -- and not others; do show stderr output of pybank in test cases
Diffstat (limited to 'contrib/taler-bank-manage-testing')
-rwxr-xr-xcontrib/taler-bank-manage-testing13
1 files changed, 1 insertions, 12 deletions
diff --git a/contrib/taler-bank-manage-testing b/contrib/taler-bank-manage-testing
index 29494e3ad..4fa80b177 100755
--- a/contrib/taler-bank-manage-testing
+++ b/contrib/taler-bank-manage-testing
@@ -21,18 +21,7 @@ taler-bank-manage -c $1 --with-db $2 django provide_accounts
taler-bank-manage -c $1 --with-db $2 django add_bank_account 42
taler-bank-manage -c $1 --with-db $2 django add_bank_account 43
-# This is 'x' hashed by Django
-PW_HASH='pbkdf2_sha256$180000$RBYjEO0WzE1z$x2Avt35TkOL2pMHvts3B1U1NIJalXZf95WnJhGFOAUs='
-
-# hack password hash directly into the database:
-echo "UPDATE auth_user SET password='$PW_HASH'" | psql -Aqt $2
-
-
-# Note that calling
-# taler-bank-manage -c $1 --with-db $2 django changepassword Bank x
-# does not work: (1) it always insists on going interactive, and (2)
-# rejects 'x' as a password.
-
+taler-bank-manage -c $1 --with-db $2 django changepassword_unsafe Exchange x
# Now run Django for good
exec taler-bank-manage -c $1 --with-db $2 $3