server/serverctl.py
branchstable
changeset 6351 eb79fb69c2b2
parent 6299 51a9494b5efb
child 6379 3f67f7ea5632
--- a/server/serverctl.py	Tue Sep 28 12:22:17 2010 +0200
+++ b/server/serverctl.py	Tue Sep 28 14:52:45 2010 +0200
@@ -501,7 +501,7 @@
                                        passwdmsg='new password for %s' % adminlogin)
         try:
             cursor.execute("UPDATE cw_CWUser SET cw_upassword=%(p)s WHERE cw_login=%(l)s",
-                           {'p': crypt_password(passwd), 'l': adminlogin})
+                           {'p': buffer(crypt_password(passwd)), 'l': adminlogin})
             sconfig = Configuration(options=USER_OPTIONS)
             sconfig['login'] = adminlogin
             sconfig['password'] = passwd