From 295072e57b513e43ad2aebae0ddf5d1779949386 Mon Sep 17 00:00:00 2001 From: Christian Hagenest Date: Mon, 17 Jun 2024 16:52:48 +0200 Subject: [PATCH] =?UTF-8?q?replace=20=C2=A7=20with=20$=20in=20doveauth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chatmaild/src/chatmaild/doveauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 7e27d8d2..f69b67ff 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: