summaryrefslogtreecommitdiff
path: root/passlib/utils
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-04-27 00:49:55 -0400
committerEli Collins <elic@assurancetechnologies.com>2012-04-27 00:49:55 -0400
commit03964d1fce1720413498dbb537acc52ba3321566 (patch)
tree0ee97040ecc6c0c930e4feb04dc6c3406f9af079 /passlib/utils
parenta8c0ef90542ec5b17fe84c18ecbe7c439da4105d (diff)
downloadpasslib-03964d1fce1720413498dbb537acc52ba3321566.tar.gz
context change - shortened hash_needs_update() to needs_update()
- renamed internal update hooks as well - needs_update() now accepts an optional copy of the password. this is unused for now, but should pave the way for properly migrating crypt_blowfish $2x$ hashes in the next release.
Diffstat (limited to 'passlib/utils')
-rw-r--r--passlib/utils/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/utils/handlers.py b/passlib/utils/handlers.py
index eb2b7d3..76de5bc 100644
--- a/passlib/utils/handlers.py
+++ b/passlib/utils/handlers.py
@@ -563,13 +563,13 @@ class GenericHandler(object):
#=========================================================
##@classmethod
- ##def _deprecation_detector(cls, **settings):
+ ##def _bind_needs_update(cls, **settings):
## """return helper to detect deprecated hashes.
##
## if this method is defined, the CryptContext constructor
## will invoke it with the settings specified for the context.
## this method should return None or a callable
- ## with the signature ``func(hash)->bool``.
+ ## with the signature ``func(hash,secret)->bool``.
##
## this function should return true if the hash
## should be re-encrypted, whether due to internal