Fix crash on sign up

This commit is contained in:
rubenwardy 2022-10-14 12:52:29 +01:00
parent e2af9893ce
commit 5f42e35231

@ -26,7 +26,7 @@ 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) and not re.match(r"^\.*$")
re.match(r"^[A-Za-z0-9._-]*$", username) and not re.match(r"^\.*$", username)
def isYes(val):