Handle the fact that in sqlite binary data might be stored as unicode or bytes

This commit is contained in:
Erik Johnston 2015-04-10 13:41:54 +01:00
parent ce797ad373
commit 7ed2ec3061
5 changed files with 20 additions and 5 deletions

View file

@ -99,7 +99,9 @@ class RegistrationStore(SQLBaseStore):
)
if user_info:
user_info["password_hash"] = user_info["password_hash"].decode("utf8")
user_info["password_hash"] = self.database_engine.load_unicode(
user_info["password_hash"]
)
defer.returnValue(user_info)