0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-29 07:58:19 +02:00

Merge pull request #4133 from matrix-org/travis/fix-terms-auth

Fix logic error that prevented guests from seeing the privacy policy
This commit is contained in:
Richard van der Hoff 2018-11-02 10:50:43 +00:00 committed by GitHub
commit 00f12e00f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/4133.feature Normal file
View file

@ -0,0 +1 @@
Add `m.login.terms` to the registration flow when consent tracking is enabled. **This makes the template arguments conditionally optional on a new `public_version` variable - update your privacy templates to support this.**

View file

@ -141,7 +141,7 @@ class ConsentResource(Resource):
username = parse_string(request, "u", required=False, default="")
userhmac = None
has_consented = False
public_version = username != ""
public_version = username == ""
if not public_version:
userhmac = parse_string(request, "h", required=True, encoding=None)