From 514a0631420e21761259844b1c526169be9998bb Mon Sep 17 00:00:00 2001 From: Christian Hagenest Date: Sun, 16 Jun 2024 22:34:55 +0200 Subject: [PATCH] black --- chatmaild/src/chatmaild/doveauth.py | 2 +- cmdeploy/src/cmdeploy/__init__.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index c8e78397..52cbec1d 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -25,7 +25,7 @@ class UnknownCommand(ValueError): def encrypt_password(password: str): # https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ 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: diff --git a/cmdeploy/src/cmdeploy/__init__.py b/cmdeploy/src/cmdeploy/__init__.py index f6552ec8..67238aaf 100644 --- a/cmdeploy/src/cmdeploy/__init__.py +++ b/cmdeploy/src/cmdeploy/__init__.py @@ -649,5 +649,3 @@ def deploy_chatmail(config_path: Path) -> None: name="Ensure cron is installed", packages=["cron"], ) - -