diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2016-06-15 16:42:16 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2016-06-15 16:42:16 -0400 |
commit | d5ffe3e5645efa1737d659a564c54b45fff829d5 (patch) | |
tree | 6291ab306427fae92350db83c22a9fb7d8066a99 /passlib/context.py | |
parent | 34d9a9d3c1a0ea98e856c9828084ab84fb409c40 (diff) | |
download | passlib-d5ffe3e5645efa1737d659a564c54b45fff829d5.tar.gz |
PasswordHandler.replace(): added support for 'relaxed' keyword;
made behavior of various bits (rounds etc) default to relaxed=False,
updated UTs accordingly.
Diffstat (limited to 'passlib/context.py')
-rw-r--r-- | passlib/context.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/passlib/context.py b/passlib/context.py index 0ad794d..8d9d50c 100644 --- a/passlib/context.py +++ b/passlib/context.py @@ -965,7 +965,9 @@ class _CryptConfig(object): # create custom handler if needed. try: - subcls = handler.replace(**settings) + # XXX: relaxed=True is mostly here to retain backwards-compat behavior. + # could make this optional flag in future. + subcls = handler.replace(relaxed=True, **settings) except TypeError as err: m = re.match(r".* unexpected keyword argument '(.*)'$", str(err)) if m and m.group(1) in settings: |