mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:44:52 -04:00
Add config variables for enabling terms auth and the policy name (#4142)
So people can still collect consent the old way if they want to.
This commit is contained in:
parent
f1087106cf
commit
0f5e51f726
10 changed files with 65 additions and 11 deletions
|
@ -142,7 +142,7 @@ class ConsentResource(Resource):
|
|||
userhmac = None
|
||||
has_consented = False
|
||||
public_version = username == ""
|
||||
if not public_version:
|
||||
if not public_version or not self.hs.config.user_consent_at_registration:
|
||||
userhmac = parse_string(request, "h", required=True, encoding=None)
|
||||
|
||||
self._check_hash(username, userhmac)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue