We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5df4564 + faf888d commit 7023d76Copy full SHA for 7023d76
openedx/core/djangoapps/user_api/accounts/__init__.py
@@ -14,7 +14,7 @@
14
NAME_MAX_LENGTH = 255
15
16
# The minimum and maximum length for the username account field
17
-USERNAME_MIN_LENGTH = 2
+USERNAME_MIN_LENGTH = getattr(settings, 'USERNAME_MIN_LENGTH', 2)
18
# Note: 30 chars is the default for historical reasons. Django uses 150 as the username length since 1.10
19
USERNAME_MAX_LENGTH = getattr(settings, 'USERNAME_MAX_LENGTH', 30)
20
0 commit comments