summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-05-07 15:19:54 +0100
committerRichard van der Hoff <richard@matrix.org>2020-05-07 15:19:54 +0100
commit5adad58d959ed0b249d43a9df81f034edc8876e7 (patch)
treea6455de4649dcfcff9837252f39f4a635c9f9f2f /synapse/handlers/auth.py
parentMerge commit '4d3ebc' into matrix-org-hotfixes (diff)
parentPropagate changes to the client dict to the database. (diff)
downloadsynapse-5adad58d959ed0b249d43a9df81f034edc8876e7.tar.xz
Merge remote-tracking branch 'origin/clokep/no-validate-ui-auth-sess' into matrix-org-hotfixes
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py4
1 files changed, 3 insertions, 1 deletions
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: