Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Supply params for terms auth stage
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Oct 3, 2018
1 parent fd99787 commit 149c4f1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions synapse/handlers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,15 @@ def _check_threepid(self, medium, authdict):
def _get_params_recaptcha(self):
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):
public_flows = []
for f in flows:
Expand Down

0 comments on commit 149c4f1

Please sign in to comment.