diff --git a/account/account.py b/account/account.py index 656d34d..723c239 100644 --- a/account/account.py +++ b/account/account.py @@ -27,9 +27,7 @@ def is_valid_input(input_string): app = Flask(__name__) def change_email_password(username, password): - print(username) - print(password) - if password and is_valid_input(username): + if password and username: try: # Create a temporary file to escape the password @@ -38,7 +36,7 @@ def change_email_password(username, password): file.write(password) # Pass the file through a shell command - cmd = ["cat", "../tmp/chnpassword.tmp", "|", "maddy", "creds", "password", f"{username}@hectabit.org"] + cmd = ["cat", "../tmp/chnpassword.tmp", "|", "maddy", "creds", "password", username] # Run and determine the result of the shell command result = subprocess.run(" ".join(cmd), shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)