Rely on the lack of ?u to represent public access

also general cleanup
This commit is contained in:
Travis Ralston 2018-10-12 17:54:28 -06:00
parent 22a2004428
commit 5119818e9d
2 changed files with 6 additions and 10 deletions

View file

@ -164,7 +164,7 @@ class AuthRestServlet(RestServlet):
html = TERMS_TEMPLATE % {
'session': session,
'terms_url': "%s/_matrix/consent?public=true" % (
'terms_url': "%s/_matrix/consent" % (
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=true" % (
'terms_url': "%s/_matrix/consent" % (
self.hs.config.public_baseurl,
),
'myurl': "%s/auth/%s/fallback/web" % (