Should fix passwords with chars
This commit is contained in:
parent
5672d0de41
commit
e73aec8110
2
app.py
2
app.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue