Add option to use email address as username

Added option email/no_username to disable username input on form, and
instead use the provided email address as the username. Also added
missing 'packaging' dep from pevious update.
This commit is contained in:
2020-06-29 00:35:51 +01:00
parent 09bbe8fddf
commit 68a459023c
7 changed files with 49 additions and 6 deletions

View File

@@ -106,6 +106,10 @@ for key in ["user_configuration", "user_displayprefs"]:
log.debug(f"Using default {key}")
config["files"][key] = str(data_dir / (key + ".json"))
if "no_username" not in config["email"]:
config["email"]["no_username"] = "false"
log.debug("Set no_username to false")
with open(config["files"]["invites"], "r") as f:
temp_invites = json.load(f)
if "invites" in temp_invites: