small fix

master
James Sigurðarson 2016-08-12 10:59:15 +01:00
parent 3cba9c18c1
commit d6c5157301
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ def run():
username = random.choice(config.shell_user_prefixes) + \
str(random.randint(0, config.shell_max_accounts))
plaintext_password = utils.misc.generate_random_string(config.shell_password_length, allowed_chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
plaintext_password = utils.misc.generate_random_string(config.shell_password_length, chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789")
hashed_password = shell.run(["bash", "-c", "echo '{}' | openssl passwd -1 -stdin".format(plaintext_password)])
hashed_password = hashed_password.output.decode("utf-8").strip()