mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
black
This commit is contained in:
committed by
missytake
parent
2b96586e12
commit
514a063142
@@ -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:
|
||||
|
||||
@@ -649,5 +649,3 @@ def deploy_chatmail(config_path: Path) -> None:
|
||||
name="Ensure cron is installed",
|
||||
packages=["cron"],
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user