Fix the setup wizard (fixes #51)

This commit is contained in:
Thomas Sileo 2019-05-17 18:54:03 +02:00
parent 766678fb8f
commit 42bf96e44a

View file

@ -28,7 +28,7 @@ def main() -> None:
print("Your identity will be @{username}@{domain}") print("Your identity will be @{username}@{domain}")
dat["domain"] = prompt("domain: ") dat["domain"] = prompt("domain: ")
dat["username"] = prompt("username: ") dat["username"] = prompt("username: ")
dat["password"] = bcrypt.hashpw( dat["pass"] = bcrypt.hashpw(
prompt("password: ", is_password=True).encode(), bcrypt.gensalt() prompt("password: ", is_password=True).encode(), bcrypt.gensalt()
).decode() ).decode()
dat["name"] = prompt("name (e.g. John Doe): ") dat["name"] = prompt("name (e.g. John Doe): ")