changeset 4107:a1858613ea4f

user.py: replaced base64.b64decode by a python2.3 compatible call
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 16 Sep 2008 20:48:54 +0200
parents 5601329304e0
children 1cd493d5e113
files MoinMoin/user.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/user.py	Sun Sep 14 17:32:57 2008 +0200
+++ b/MoinMoin/user.py	Tue Sep 16 20:48:54 2008 +0200
@@ -521,7 +521,7 @@
             return False, False
 
         if epwd[:6] == '{SSHA}':
-            data = base64.b64decode(epwd[6:])
+            data = base64.decodestring(epwd[6:])
             salt = data[20:]
             hash = sha.new(password)
             hash.update(salt)