server/sources/native.py
changeset 10769 c45f4bcff3aa
parent 10758 a34edc1057c0
child 10915 cf800aa43f48
--- a/server/sources/native.py	Mon Oct 05 15:49:17 2015 +0200
+++ b/server/sources/native.py	Mon Oct 05 16:28:07 2015 +0200
@@ -1545,7 +1545,7 @@
                                         SQL_PREFIX + 'CWUser',
                                         SQL_PREFIX + 'upassword',
                                         SQL_PREFIX + 'login'),
-                                       {'newhash': self.source._binary(newhash),
+                                       {'newhash': self.source._binary(newhash.encode('ascii')),
                                         'login': login})
                     cnx.commit()
             return user