mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
fix lint
This commit is contained in:
@@ -25,7 +25,7 @@ class UnknownCommand(ValueError):
|
|||||||
def encrypt_password(password: str):
|
def encrypt_password(password: str):
|
||||||
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
|
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
|
||||||
pw = passlib.hash.sha512_crypt.hash(password).split("$")
|
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]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user