diff options
author | Travis Ralston <travpc@gmail.com> | 2018-10-12 18:03:27 -0600 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2018-10-12 18:03:27 -0600 |
commit | dd99db846d76d511fc7bbea80897b9101782ec1f (patch) | |
tree | a3b67103c5e66d991e52d4249d134ca11e856381 | |
parent | Rely on the lack of ?u to represent public access (diff) | |
download | synapse-dd99db846d76d511fc7bbea80897b9101782ec1f.tar.xz |
Update login terms structure for the proposed language support
-rw-r--r-- | synapse/handlers/auth.py | 11 |
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): |