replace § with $ in doveauth

This commit is contained in:
Christian Hagenest
2024-06-17 16:52:48 +02:00
committed by missytake
parent dc17088517
commit 295072e57b

View File

@@ -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: