Ticket #19799: fix1.patch
File fix1.patch, 421 bytes (added by , 12 years ago) |
---|
-
django/contrib/auth/hashers.py
old new 40 40 hasher = get_hasher('unsalted_md5') 41 41 else: 42 42 algorithm = encoded.split('$', 1)[0] 43 if not algorithm: 44 return False 43 45 hasher = get_hasher(algorithm) 44 46 45 47 must_update = hasher.algorithm != preferred.algorithm