summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul McMillan <Paul@McMillan.ws>2012-03-12 10:43:59 +0000
committerPaul McMillan <Paul@McMillan.ws>2012-03-12 10:43:59 +0000
commitbf1112de7d0618ece5c107627ff18b1c0d098f85 (patch)
treec1a0b90eca8671243042cc022208382ff9973c41
parentaba9ebcaee8edf3fb0b99bdc670c0620dab1b270 (diff)
Fixed #17777. Unsalted MD5 display widget correction.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
index badd7602f6..a88c866e4b 100644
--- a/django/contrib/auth/forms.py
+++ b/django/contrib/auth/forms.py
@@ -29,7 +29,7 @@ class ReadOnlyPasswordHashWidget(forms.Widget):
encoded = smart_str(encoded)
if len(encoded) == 32 and '$' not in encoded:
- hasher = get_hasher('md5')
+ hasher = get_hasher('unsalted_md5')
else:
algorithm = encoded.split('$', 1)[0]
hasher = get_hasher(algorithm)