diff --git a/app/utils/__init__.py b/app/utils/__init__.py index 3bb6b877..76be1c69 100644 --- a/app/utils/__init__.py +++ b/app/utils/__init__.py @@ -25,7 +25,8 @@ YESES = ["yes", "true", "1", "on"] def is_username_valid(username): - return username is not None and len(username) >= 2 and re.match(r"^[A-Za-z0-9._-]*$", username) + return username is not None and len(username) >= 2 and \ + re.match(r"^[A-Za-z0-9._-]*$", username) and not re.match(r"^\.*$") def isYes(val):