SAE-A2-TruthInquiry/truthseeker/utils.py
2023-01-06 08:33:51 +01:00

10 lines
207 B
Python

def check_username(username):
if not username:
return False
if not username == username.strip():
return False
if not len(username) < 16:
return False
return True