Skip to content

Commit 7a84dcc

Browse files
authored
Allow usernames with numbers
X Æ A-12 real context: group usernames with numbers
1 parent 3961965 commit 7a84dcc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ocflib/account/validators.py

-3
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,6 @@ def validate_username(username, check_exists=False):
344344
if not 3 <= len(username) <= 16:
345345
raise ValueError('Username must be between 3 and 16 characters.')
346346

347-
if not all(c.islower() for c in username):
348-
raise ValueError('Username must be all lowercase letters.')
349-
350347
if check_exists and not user_exists(username):
351348
raise ValueError('Username does not exist.')
352349

0 commit comments

Comments
 (0)