summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorTravis Ralston <travpc@gmail.com>2018-10-31 13:19:28 -0600
committerTravis Ralston <travpc@gmail.com>2018-10-31 13:19:28 -0600
commita8d41c6aff0e58fc24fae1fe4ae89d28541a63cb (patch)
treeaf0eb4ef2928ab103a18153a15613016d9743974 /synapse/rest
parentMerge branch 'develop' into travis/login-terms (diff)
downloadsynapse-a8d41c6aff0e58fc24fae1fe4ae89d28541a63cb.tar.xz
Include a version query string arg for the consent route
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/auth.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/auth.py b/synapse/rest/client/v2_alpha/auth.py
index 6f90935b22..a8d8ed6590 100644
--- a/synapse/rest/client/v2_alpha/auth.py
+++ b/synapse/rest/client/v2_alpha/auth.py
@@ -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