summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2021-12-13 17:53:07 +0000
committerGitHub <noreply@github.com>2021-12-13 18:53:07 +0100
commit41329b9852fcae586bd20aa9f3e591dde94cc925 (patch)
tree6cca3706e38dd49dfc82b85335b310ab4d9af123 /docs
parent669dcefc04837c35fc2ec5ce906d84397005965d (diff)
Improved wording in password validators docs and docstrings.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/passwords.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt
index 3124e5c745..405d91b09f 100644
--- a/docs/topics/auth/passwords.txt
+++ b/docs/topics/auth/passwords.txt
@@ -594,12 +594,12 @@ Django includes four validators:
.. class:: MinimumLengthValidator(min_length=8)
- Validates whether the password meets a minimum length.
+ Validates that the password is of a minimum length.
The minimum length can be customized with the ``min_length`` parameter.
.. class:: UserAttributeSimilarityValidator(user_attributes=DEFAULT_USER_ATTRIBUTES, max_similarity=0.7)
- Validates whether the password is sufficiently different from certain
+ Validates that the password is sufficiently different from certain
attributes of the user.
The ``user_attributes`` parameter should be an iterable of names of user
@@ -614,7 +614,7 @@ Django includes four validators:
.. class:: CommonPasswordValidator(password_list_path=DEFAULT_PASSWORD_LIST_PATH)
- Validates whether the password is not a common password. This converts the
+ Validates that the password is not a common password. This converts the
password to lowercase (to do a case-insensitive comparison) and checks it
against a list of 20,000 common password created by `Royce Williams
<https://gist.github.com/roycewilliams/281ce539915a947a23db17137d91aeb7>`_.
@@ -625,7 +625,7 @@ Django includes four validators:
.. class:: NumericPasswordValidator()
- Validates whether the password is not entirely numeric.
+ Validate that the password is not entirely numeric.
Integrating validation
----------------------