forked from MirrorHub/synapse
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):
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue