From e7aaa1d601ee044d22eff6a003581af6449fce43 Mon Sep 17 00:00:00 2001 From: Paco Hope Date: Sun, 4 Dec 2022 10:20:53 -0500 Subject: [PATCH] updated with comments for changes --- server-util/make-users.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server-util/make-users.py b/server-util/make-users.py index 436c0a9..67a0ef1 100644 --- a/server-util/make-users.py +++ b/server-util/make-users.py @@ -32,6 +32,12 @@ def randomName(): return( random.choice(usernames) ) def main(): +# 1. Prompt for user name / password (ask for it as a CLI argument?) +# 2. login as admin +# 3. Change all the tootctl lines to create_account() +# 4. Pass to_file to create_account() to write the client secrets to .tootapalooza-usercred... +# 5. Write username/pass/name to users.toml + parser = argparse.ArgumentParser( description="Create random users for tootapalooza" ) @@ -78,7 +84,7 @@ def main(): emailaddr = "{}+tooter_{}_{}@{}".format(mailbox, userid.split('_')[1], userid.split('_')[2], emailDomain ) password = None - +# ---- Nick start here # Inherit current running environment myenv=os.environ.copy() # make sure the rails_env is set @@ -119,7 +125,7 @@ def main(): except OSError as e: print(f"Calling {tootctlprog} failed:", e, file=sys.stderr) sys.exit(3) - +# Nick stop here entry = {} entry["addr"] = emailaddr entry["pass"] = password