|
@@ -161,9 +161,11 @@ class CommonPasswordValidator:
|
|
|
"""
|
|
|
Validate whether the password is a common password.
|
|
|
|
|
|
- The password is rejected if it occurs in a provided list, which may be gzipped.
|
|
|
- The list Django ships with contains 20000 common passwords, created by
|
|
|
- Royce Williams: https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7
|
|
|
+ The password is rejected if it occurs in a provided list of passwords,
|
|
|
+ which may be gzipped. The list Django ships with contains 20000 common
|
|
|
+ passwords (lowercased and deduplicated), created by Royce Williams:
|
|
|
+ https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7
|
|
|
+ The password list must be lowercased to match the comparison in validate().
|
|
|
"""
|
|
|
DEFAULT_PASSWORD_LIST_PATH = Path(__file__).resolve().parent / 'common-passwords.txt.gz'
|
|
|
|