diff options
Diffstat (limited to 'passlib/ext')
| -rw-r--r-- | passlib/ext/django/models.py | 4 | ||||
| -rw-r--r-- | passlib/ext/django/utils.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/passlib/ext/django/models.py b/passlib/ext/django/models.py index 6c4d245..a202c93 100644 --- a/passlib/ext/django/models.py +++ b/passlib/ext/django/models.py @@ -61,7 +61,7 @@ def _apply_patch(): FORMS_PATH = "django.contrib.auth.forms" # - # import UNUSUABLE_PASSWORD and is_password_usuable() helpers + # import UNUSABLE_PASSWORD and is_password_usable() helpers # (providing stubs for older django versions) # if VERSION < (1,4): @@ -161,7 +161,7 @@ def _apply_patch(): @_manager.monkeypatch(MODELS_PATH) def check_password(password, encoded, setter=None, preferred="default"): "passlib replacement for check_password()" - # XXX: this currently ignores "preferred" keyword, since it's purpose + # XXX: this currently ignores "preferred" keyword, since its purpose # was for hash migration, and that's handled by the context. if not is_valid_secret(password) or not is_password_usable(encoded): return False diff --git a/passlib/ext/django/utils.py b/passlib/ext/django/utils.py index 161212b..1a05c14 100644 --- a/passlib/ext/django/utils.py +++ b/passlib/ext/django/utils.py @@ -259,7 +259,7 @@ def _get_hasher(algorithm): # we haven't patched django, so just import directly from django.contrib.auth.hashers import get_hasher else: - # we've patched django, so have to use patch manager to retreive + # we've patched django, so have to use patch manager to retrieve # original get_hasher() function... get_hasher = module._manager.getorig("django.contrib.auth.hashers:get_hasher") return get_hasher(algorithm) |
