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.
This commit is contained in:
Travis Ralston 2018-10-03 17:50:11 -06:00
parent f9d34a763c
commit 537d0b7b36
3 changed files with 25 additions and 17 deletions

View file

@ -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" % (