Should fix passwords with chars

This commit is contained in:
Tracker-Friendly 2023-11-16 07:47:38 +00:00
parent 5672d0de41
commit e73aec8110
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -24,6 +24,8 @@ def create_email_account(username, password):
cmd2 = ["doas", "-u", "maddy", "maddy", "imap-acct", "create", f"{username}@hectabit.org"] 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) 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: if result.returncode == 0 and result2.returncode == 0:
# Command executed successfully # Command executed successfully
return True return True