mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
be fine with 9 chars for password already
This commit is contained in:
@@ -28,8 +28,8 @@ def is_allowed_to_create(user, cleartext_password) -> bool:
|
||||
logging.warning(f"blocked account creation because {NOCREATE_FILE!r} exists.")
|
||||
return False
|
||||
|
||||
if len(cleartext_password) < 10:
|
||||
logging.warning("Password needs to be at least 10 characters long")
|
||||
if len(cleartext_password) < 9:
|
||||
logging.warning("Password needs to be at least 9 characters long")
|
||||
return False
|
||||
|
||||
parts = user.split("@")
|
||||
|
||||
Reference in New Issue
Block a user