feat: Update the minimum password length.

This commit is contained in:
Feanil Patel
2023-09-28 15:16:21 -04:00
parent 4266934c07
commit 683145156b
2 changed files with 4 additions and 19 deletions

View File

@@ -121,6 +121,9 @@ from lms.envs.common import (
# Methods to derive settings
_make_mako_template_dirs,
_make_locale_paths,
# Password Validator Settings
AUTH_PASSWORD_VALIDATORS
)
from path import Path as path
from django.urls import reverse_lazy
@@ -1878,24 +1881,6 @@ EVENT_TRACKING_PROCESSORS = []
EVENT_TRACKING_SEGMENTIO_EMIT_WHITELIST = []
#### PASSWORD POLICY SETTINGS #####
AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
},
{
"NAME": "common.djangoapps.util.password_policy_validators.MinimumLengthValidator",
"OPTIONS": {
"min_length": 2
}
},
{
"NAME": "common.djangoapps.util.password_policy_validators.MaximumLengthValidator",
"OPTIONS": {
"max_length": 75
}
},
]
PASSWORD_POLICY_COMPLIANCE_ROLLOUT_CONFIG = {
'ENFORCE_COMPLIANCE_ON_LOGIN': False
}

View File

@@ -3756,7 +3756,7 @@ AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "common.djangoapps.util.password_policy_validators.MinimumLengthValidator",
"OPTIONS": {
"min_length": 2
"min_length": 8
}
},
{