diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-11-01 20:18:48 -0700 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2019-11-05 14:22:20 +0100 |
| commit | edeec1247e52de6fc32cee93e96d4ce36003ea4b (patch) | |
| tree | d16e5f69dca4ddf5b0b81c4c696c786a43cd0e99 /django/contrib/auth | |
| parent | b991eefd3a9fa4da4eb46fddcb36cf1e8b5862e9 (diff) | |
Passed strict=True to Path.resolve() to enforce that the path must exist.
Diffstat (limited to 'django/contrib/auth')
| -rw-r--r-- | django/contrib/auth/password_validation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/password_validation.py b/django/contrib/auth/password_validation.py index 845f4d86d5..61a482fdad 100644 --- a/django/contrib/auth/password_validation.py +++ b/django/contrib/auth/password_validation.py @@ -167,7 +167,7 @@ class CommonPasswordValidator: 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' + DEFAULT_PASSWORD_LIST_PATH = Path(__file__).resolve(strict=True).parent / 'common-passwords.txt.gz' def __init__(self, password_list_path=DEFAULT_PASSWORD_LIST_PATH): try: |
