Revision: 8160
          http://svn.sourceforge.net/mailman/?rev=8160&view=rev
Author:   tkikuchi
Date:     2007-02-22 03:02:21 -0800 (Thu, 22 Feb 2007)

Log Message:
-----------
Hashed password should be ascii string not unicode.

Modified Paths:
--------------
    trunk/mailman/Mailman/passwords.py

Modified: trunk/mailman/Mailman/passwords.py
===================================================================
--- trunk/mailman/Mailman/passwords.py  2007-02-15 19:06:18 UTC (rev 8159)
+++ trunk/mailman/Mailman/passwords.py  2007-02-22 11:02:21 UTC (rev 8160)
@@ -97,7 +97,7 @@
     @staticmethod
     def check_response(challenge, response):
         # Get the salt from the challenge
-        challenge_bytes = decode(challenge)
+        challenge_bytes = decode(str(challenge))
         digest = challenge_bytes[:20]
         salt = challenge_bytes[20:]
         h = sha.new(response)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to