mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 06:09:24 -05:00
Supply params for terms auth stage
As per https://github.com/matrix-org/matrix-doc/pull/1692
This commit is contained in:
parent
fd99787162
commit
149c4f1765
@ -466,6 +466,15 @@ class AuthHandler(BaseHandler):
|
|||||||
def _get_params_recaptcha(self):
|
def _get_params_recaptcha(self):
|
||||||
return {"public_key": self.hs.config.recaptcha_public_key}
|
return {"public_key": self.hs.config.recaptcha_public_key}
|
||||||
|
|
||||||
|
def _get_params_terms(self):
|
||||||
|
return {
|
||||||
|
"policies": [{
|
||||||
|
"name": "Privacy Policy",
|
||||||
|
"version": self.hs.config.user_consent_version,
|
||||||
|
"url": "%s/_matrix/consent/public" % (self.hs.config.public_baseurl,),
|
||||||
|
}],
|
||||||
|
}
|
||||||
|
|
||||||
def _auth_dict_for_flows(self, flows, session):
|
def _auth_dict_for_flows(self, flows, session):
|
||||||
public_flows = []
|
public_flows = []
|
||||||
for f in flows:
|
for f in flows:
|
||||||
|
Loading…
Reference in New Issue
Block a user