From 3eae1657de25e043d91c9bace7808e2d31f2a8e6 Mon Sep 17 00:00:00 2001 From: missytake Date: Wed, 19 Jun 2024 14:42:27 +0200 Subject: [PATCH] fix lint --- 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 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]