Fixed #17777. Unsalted MD5 display widget correction.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
aba9ebcaee
commit
bf1112de7d
|
@ -29,7 +29,7 @@ class ReadOnlyPasswordHashWidget(forms.Widget):
|
||||||
encoded = smart_str(encoded)
|
encoded = smart_str(encoded)
|
||||||
|
|
||||||
if len(encoded) == 32 and '$' not in encoded:
|
if len(encoded) == 32 and '$' not in encoded:
|
||||||
hasher = get_hasher('md5')
|
hasher = get_hasher('unsalted_md5')
|
||||||
else:
|
else:
|
||||||
algorithm = encoded.split('$', 1)[0]
|
algorithm = encoded.split('$', 1)[0]
|
||||||
hasher = get_hasher(algorithm)
|
hasher = get_hasher(algorithm)
|
||||||
|
|
Loading…
Reference in New Issue