mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-03 13:29:27 +00: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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user