Update login terms structure for the proposed language support

This commit is contained in:
Travis Ralston 2018-10-12 18:03:27 -06:00
parent 5119818e9d
commit dd99db846d

View file

@ -468,11 +468,14 @@ class AuthHandler(BaseHandler):
def _get_params_terms(self): def _get_params_terms(self):
return { return {
"policies": [{ "policies": {
"name": "Privacy Policy", "privacy_policy": {
"version": self.hs.config.user_consent_version, "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): def _auth_dict_for_flows(self, flows, session):