diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index b5bcf3db..80e1b903 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]