0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 06:43:46 +01:00

Include a version query string arg for the consent route

This commit is contained in:
Travis Ralston 2018-10-31 13:19:28 -06:00
parent d1e7b9c44c
commit a8d41c6aff
2 changed files with 8 additions and 3 deletions

View file

@ -473,7 +473,10 @@ class AuthHandler(BaseHandler):
"version": self.hs.config.user_consent_version,
"en": {
"name": "Privacy Policy",
"url": "%s/_matrix/consent" % (self.hs.config.public_baseurl,),
"url": "%s/_matrix/consent?v=%s" % (
self.hs.config.public_baseurl,
self.hs.config.user_consent_version,
),
},
},
},

View file

@ -161,8 +161,9 @@ class AuthRestServlet(RestServlet):
html = TERMS_TEMPLATE % {
'session': session,
'terms_url': "%s/_matrix/consent" % (
'terms_url': "%s/_matrix/consent?v=%s" % (
self.hs.config.public_baseurl,
self.hs.config.user_consent_version,
),
'myurl': "%s/auth/%s/fallback/web" % (
CLIENT_V2_ALPHA_PREFIX, LoginType.TERMS
@ -241,8 +242,9 @@ class AuthRestServlet(RestServlet):
else:
html = TERMS_TEMPLATE % {
'session': session,
'terms_url': "%s/_matrix/consent" % (
'terms_url': "%s/_matrix/consent?v=%s" % (
self.hs.config.public_baseurl,
self.hs.config.user_consent_version,
),
'myurl': "%s/auth/%s/fallback/web" % (
CLIENT_V2_ALPHA_PREFIX, LoginType.TERMS