From 8cb77d3b98931fd5a62619b73960d22682667e68 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 7 Dec 2023 17:10:41 +0100 Subject: [PATCH] be fine with 9 chars for password already --- chatmaild/src/chatmaild/doveauth.py | 4 ++-- www/info.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index 95a00d41..dda353a8 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -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("@") diff --git a/www/info.md b/www/info.md index fb29ca14..1de469dd 100644 --- a/www/info.md +++ b/www/info.md @@ -12,7 +12,7 @@ and fill the two fields like this: - `Address`: invent a word with *exactly* nine characters and append `@{{config.mail_domain}}` to it. -- `Password`: invent at least 10 characters. +- `Password`: invent at least 9 characters. If the e-mail address is not yet taken, you'll get that account. The first login sets your password.