summary refs log tree commit diff
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-10-12 18:03:27 -0600
committerTravis Ralston <travpc@gmail.com>2018-10-12 18:03:27 -0600
commitdd99db846d76d511fc7bbea80897b9101782ec1f (patch)
treea3b67103c5e66d991e52d4249d134ca11e856381
parentRely on the lack of ?u to represent public access (diff)
downloadsynapse-dd99db846d76d511fc7bbea80897b9101782ec1f.tar.xz
Update login terms structure for the proposed language support
-rw-r--r--synapse/handlers/auth.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py

index 42d1336d6e..9038fee264 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py
@@ -468,11 +468,14 @@ class AuthHandler(BaseHandler): def _get_params_terms(self): return { - "policies": [{ - "name": "Privacy Policy", + "policies": { + "privacy_policy": { "version": self.hs.config.user_consent_version, - "url": "%s/_matrix/consent?public=true" % (self.hs.config.public_baseurl,), - }], + "en": { + "name": "Privacy Policy", + "url": "%s/_matrix/consent" % (self.hs.config.public_baseurl,), + }, + }, } def _auth_dict_for_flows(self, flows, session):