summaryrefslogtreecommitdiff
path: root/src/authorization
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2022-12-26 17:44:28 +0100
committerChristian Grothoff <grothoff@gnunet.org>2022-12-26 17:44:28 +0100
commit333dfe91630f5b7d4afde94f53e77720539fe4c7 (patch)
tree5f36dc4159aea53b05123bc8997d4ca27a2754cf /src/authorization
parentc46543428f293bda5c9a11fadf789f58921cce7d (diff)
downloadanastasis-333dfe91630f5b7d4afde94f53e77720539fe4c7.tar.gz
anastasis-333dfe91630f5b7d4afde94f53e77720539fe4c7.tar.bz2
anastasis-333dfe91630f5b7d4afde94f53e77720539fe4c7.zip
-simple test script
Diffstat (limited to 'src/authorization')
-rwxr-xr-xsrc/authorization/test-post.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/authorization/test-post.sh b/src/authorization/test-post.sh
new file mode 100755
index 0000000..8e82af4
--- /dev/null
+++ b/src/authorization/test-post.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# This file is in the public domain.
+set -eu
+ADDR=`jq -n '{
+ full_name: "John Doe",
+ street: "Bar street 3",
+ city: "Wuppertal",
+ postcode: 42289,
+ country: "Deutschland",
+ }'`
+
+echo "Your recovery code is 1234" | ./anastasis-authorization-post.sh "$ADDR"