Fix regex for username validator
\X doesn't work in Python so I use the .
This commit is contained in:
@@ -2,4 +2,4 @@ from django.contrib.auth.validators import UnicodeUsernameValidator
|
||||
|
||||
|
||||
class CustomUsernameValidator(UnicodeUsernameValidator):
|
||||
regex = r'^[\X]+$'
|
||||
regex = r'^.+$'
|
||||
|
||||
Reference in New Issue
Block a user