mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 13:59:21 -05: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:
commit
00f12e00f8
1
changelog.d/4133.feature
Normal file
1
changelog.d/4133.feature
Normal 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.**
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user