mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 01:30:20 +00:00
Update login terms structure for the proposed language support
This commit is contained in:
parent
5119818e9d
commit
dd99db846d
1 changed files with 7 additions and 4 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue