diff MoinMoin/support/passlib/apps.py @ 6130:7f0616feeae9

upgrade passlib to 1.7.1, update CHANGES
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 11 Apr 2017 22:53:58 +0200
parents 86a41c2bedec
children
line wrap: on
line diff
--- a/MoinMoin/support/passlib/apps.py	Tue Apr 11 22:42:23 2017 +0200
+++ b/MoinMoin/support/passlib/apps.py	Tue Apr 11 22:53:58 2017 +0200
@@ -74,7 +74,6 @@
 
     # set some useful global options
     default="sha256_crypt" if sys_bits < 64 else "sha512_crypt",
-    all__vary_rounds = 0.1,
 
     # set a good starting point for rounds selection
     sha512_crypt__min_rounds = 535000,
@@ -113,8 +112,14 @@
     deprecated=_django10_schemes,
 )
 
+django110_context = LazyCryptContext(
+    schemes=["django_pbkdf2_sha256", "django_pbkdf2_sha1",
+             "django_argon2", "django_bcrypt", "django_bcrypt_sha256",
+             "django_disabled"],
+)
+
 # this will always point to latest version
-django_context = django16_context
+django_context = django110_context
 
 #=============================================================================
 # ldap