diff --git a/chatmaild/src/chatmaild/doveauth.py b/chatmaild/src/chatmaild/doveauth.py index c937cbeb..138497bc 100644 --- a/chatmaild/src/chatmaild/doveauth.py +++ b/chatmaild/src/chatmaild/doveauth.py @@ -46,7 +46,7 @@ def is_allowed_to_create(config: Config, user, cleartext_password) -> bool: len(localpart) > config.username_max_length or len(localpart) < config.username_min_length ): - if localpart != "echo" and localpart != "hello": + if localpart not in ("echo", "hello"): logging.warning( "localpart %s has to be between %s and %s chars long", localpart,