diff options
author | Travis Ralston <travpc@gmail.com> | 2018-10-03 17:50:11 -0600 |
---|---|---|
committer | Travis Ralston <travpc@gmail.com> | 2018-10-03 17:50:11 -0600 |
commit | 537d0b7b3632789e40cec13f3120151098f11d75 (patch) | |
tree | 4ad1a9e39ce67c43ccb191d5dbc453557ec84902 /synapse/rest/client/v2_alpha | |
parent | Auto-consent to the privacy policy if the user registered with terms (diff) | |
download | synapse-537d0b7b3632789e40cec13f3120151098f11d75.tar.xz |
Use a flag rather than a new route for the public policy
This also means that the template now has optional parameters, which will need to be documented somehow.
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r-- | synapse/rest/client/v2_alpha/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/auth.py b/synapse/rest/client/v2_alpha/auth.py index f86f09adcf..77a5ea66f3 100644 --- a/synapse/rest/client/v2_alpha/auth.py +++ b/synapse/rest/client/v2_alpha/auth.py @@ -164,7 +164,7 @@ class AuthRestServlet(RestServlet): html = TERMS_TEMPLATE % { 'session': session, - 'terms_url': "%s/_matrix/consent/public" % ( + 'terms_url': "%s/_matrix/consent?public=true" % ( self.hs.config.public_baseurl, ), 'myurl': "%s/auth/%s/fallback/web" % ( @@ -244,7 +244,7 @@ class AuthRestServlet(RestServlet): else: html = TERMS_TEMPLATE % { 'session': session, - 'terms_url': "%s/_matrix/consent/public" % ( + 'terms_url': "%s/_matrix/consent?public=true" % ( self.hs.config.public_baseurl, ), 'myurl': "%s/auth/%s/fallback/web" % ( |