From d7c7f64f176ab73cfdcc1a26d71cfbffc49c506c Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 7 May 2020 10:07:09 -0400 Subject: Propagate changes to the client dict to the database. --- synapse/handlers/auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'synapse/handlers') diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index a167498add..1d779d2978 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -317,7 +317,7 @@ class AuthHandler(BaseHandler): except StoreError: raise SynapseError(400, "Unknown session ID: %s" % (sid,)) - if not clientdict: + if clientdict: # This was designed to allow the client to omit the parameters # and just supply the session in subsequent calls so it split # auth between devices by just sharing the session, (eg. so you @@ -327,6 +327,8 @@ class AuthHandler(BaseHandler): # on a homeserver. # Revisit: Assuming the REST APIs do sensible validation, the data # isn't arbitrary. + await self.store.set_ui_auth_clientdict(sid, clientdict) + else: clientdict = session.clientdict if not authdict: -- cgit 1.5.1