From 88b63a9b1957076bc05ce93270099b11e15cc851 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Thu, 1 Oct 2015 01:18:51 +0200 Subject: [PATCH] Revert "[IMP] auth_crypt: update to Passlib 1.6" Unfortunately Ubuntu LTS does not have passlib 1.6 yet, even though Debian Stable has it now, so for the sake of making life easier for everybody we'll stick with passlib 1.5 for one more version. This reverts commit c950224ef78dd5c63325d6a194d93601789f3ca6. --- addons/auth_crypt/auth_crypt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/auth_crypt/auth_crypt.py b/addons/auth_crypt/auth_crypt.py index 810d0d35af6..7c9d0c5fa2c 100644 --- a/addons/auth_crypt/auth_crypt.py +++ b/addons/auth_crypt/auth_crypt.py @@ -14,7 +14,11 @@ default_crypt_context = CryptContext( # kdf which can be verified by the context. The default encryption kdf is # the first of the list ['pbkdf2_sha512', 'md5_crypt'], - deprecated=['auto'], + # deprecated algorithms are still verified as usual, but ``needs_update`` + # will indicate that the stored hash should be replaced by a more recent + # algorithm. Passlib 1.6 supports an `auto` value which deprecates any + # algorithm but the default, but Ubuntu LTS only provides 1.5 so far. + deprecated=['md5_crypt'], ) class res_users(osv.osv):