mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 19:44:06 -04:00
Handle the fact that in sqlite binary data might be stored as unicode or bytes
This commit is contained in:
parent
ce797ad373
commit
7ed2ec3061
5 changed files with 20 additions and 5 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue