mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 19:44:53 -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
|
@ -360,7 +360,7 @@ class RegisterRestServlet(RestServlet):
|
|||
])
|
||||
|
||||
# Append m.login.terms to all flows if we're requiring consent
|
||||
if self.hs.config.block_events_without_consent_error is not None:
|
||||
if self.hs.config.user_consent_at_registration:
|
||||
new_flows = []
|
||||
for flow in flows:
|
||||
flow.append(LoginType.TERMS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue