1
0
Fork 0

Add flaw 4: weak passwords allowed

This commit is contained in:
Vili Sinervä 2024-11-25 17:16:29 +02:00
parent 05fec8a837
commit e8f671d66e
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
3 changed files with 16 additions and 6 deletions

View file

@ -91,6 +91,9 @@ AUTH_PASSWORD_VALIDATORS = [
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {
'min_length': 10,
}
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',