summaryrefslogtreecommitdiff
path: root/bin/taler-deployment
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-09-17 16:45:25 +0200
committerms <ms@taler.net>2021-09-17 16:45:25 +0200
commit77ccb623cc37f0e2e386c36255bf5096505ae17f (patch)
tree4d11de0eee84eee0c03446774ece631767145dde /bin/taler-deployment
parentd62c574bea9f6738f8db21c6dde7253a25be684c (diff)
downloaddeployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.tar.gz
deployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.tar.bz2
deployment-77ccb623cc37f0e2e386c36255bf5096505ae17f.zip
api token != password
Diffstat (limited to 'bin/taler-deployment')
-rwxr-xr-xbin/taler-deployment6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/taler-deployment b/bin/taler-deployment
index 4f111df..eb7fc15 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -104,6 +104,10 @@ currmap = {
def generate_apitoken():
return "secret-token:" + ''.join(random.choices(ascii_letters + ascii_uppercase, k=10))
+def generate_password():
+ return ''.join(random.choices(ascii_letters + ascii_uppercase, k=10))
+
+
def update_checkout(r: Repo, p: Path):
"""Clean the repository's working directory and
update it to the match the latest version of the upstream branch
@@ -705,7 +709,7 @@ def bootstrap() -> None:
sandbox_admin_password_file = Path.home() / "libeufin_admin_password"
if not sandbox_admin_password_file.is_file():
with sandbox_admin_password_file.open("w") as f:
- f.write(generate_apitoken())
+ f.write(generate_password())
print(f"Libeufin Sandbox admin password file '{sandbox_admin_password_file}' created.")
with (home / "activate").open("w") as f: