mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
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:
parent
f9d34a763c
commit
537d0b7b36
3 changed files with 25 additions and 17 deletions
|
@ -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" % (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue