diff --git a/app.py b/app.py index b327ebb..59d6fdc 100644 --- a/app.py +++ b/app.py @@ -24,6 +24,8 @@ def create_email_account(username, password): cmd2 = ["doas", "-u", "maddy", "maddy", "imap-acct", "create", f"{username}@hectabit.org"] result2 = subprocess.run(" ".join(cmd2), shell=True, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + os.remove("password.tmp") + if result.returncode == 0 and result2.returncode == 0: # Command executed successfully return True