This commit is contained in:
Christian Hagenest
2024-06-16 22:34:55 +02:00
committed by missytake
parent 2b96586e12
commit 514a063142
2 changed files with 1 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class UnknownCommand(ValueError):
def encrypt_password(password: str): def encrypt_password(password: str):
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ # https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
pw = passlib.hash.sha512_crypt.hash(password).split("$") pw = passlib.hash.sha512_crypt.hash(password).split("$")
return "{SHA512-CRYPT}$" + pw[1] + "$" + pw[3] + "§" + pw[4] return "{SHA512-CRYPT}$" + pw[1] + "$" + pw[3] + "§" + pw[4]
def is_allowed_to_create(config: Config, user, cleartext_password) -> bool: def is_allowed_to_create(config: Config, user, cleartext_password) -> bool:

View File

@@ -649,5 +649,3 @@ def deploy_chatmail(config_path: Path) -> None:
name="Ensure cron is installed", name="Ensure cron is installed",
packages=["cron"], packages=["cron"],
) )